SlashDevin / NeoSWSerial

Efficient alternative to SoftwareSerial with attachInterrupt for RX chars, simultaneous RX & TX
173 stars 42 forks source link

peek() returns zero #46

Open cider101 opened 3 years ago

cider101 commented 3 years ago

Is there a reason, that peek() is implemented with return 0 ? a simple implementation would be

return rxHead == rxTail ? -1 : rxBuffer[rxTail];

or have i overseen something ?