Go Down

Topic: while(Serial.available()==0) {} loop falls through (Read 12666 times) previous topic - next topic

1oldfox

Robin, thanks. Good stuff. I browsed through both of them. That's a *lot* of stuff. I'll read and learn *all*
of it during my next coffee break.  :smiley-lol:

Thanks again.
If it ain't broke, fix it 'til it is!

PaulMurrayCbr

How does parseInt() interact with end-of-line markers? Maybe that's why the next ones are falling though - the peek at but don't consume the \n, \r, or \r\n .
http://paulmurraycbr.github.io/ArduinoTheOOWay.html

J-M-L

@paulMurray

indeed that would be an issue as well in the general case but 1oldfox mentioned above:

Quote
Hi ieee, thanks for the response. My SM is set with "no line ending".
so he does not generate any extra characters.

Hello - Please do not PM me for help,  others will benefit as well if you post your question publicly on the forums.
Bonjour Pas de messages privés SVP, postez dans le forum directement pour que ça profite à tous

Go Up