Announcement

Collapse
No announcement yet.

Serial input / buffer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serial input / buffer

    hi,

    I guess this is an easy one...
    I have the following code for serial communication:

    HTML Code:
    var commBuffer[16];
    
    com_Init(commBuffer, 32, 0);
    
    repeat
    if (com_Full())
    print(com_Count());  //"31" !
    ...
    endif
    until....
    When the buffer is full, I would expect com_Count() to be 32, but it's 31. why is that?

    thanks a lot,
    Alex
Working...
X