Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 27 of 27

Thread: Teensyduino 1.40 Beta #2

  1. #26
    Member
    Join Date
    Sep 2016
    Location
    NYC, USA
    Posts
    44
    I see, thanks.
    BTW, both !Serial and !Serial.available() appear to produce the same results. I'll use your suggestion. Less typing, if no other reason.

    best,
    Michael

  2. #27
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,089
    Quote Originally Posted by Michael Ward View Post
    I see, thanks.
    BTW, both !Serial and !Serial.available() appear to produce the same results. I'll use your suggestion. Less typing, if no other reason.

    best,
    Michael
    Adding .available() would sit if somehow data was ready the instant Serial was seen as true, and yes, wasted typing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •