Use correct buffer size variable when checking for softserial waiting

bytes.  Fixes #127.
This commit is contained in:
Dominic Clifton 2014-10-21 13:41:51 +01:00
parent cbd1817f6c
commit fd32ad6fcb
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ uint8_t softSerialTotalBytesWaiting(serialPort_t *instance)
softSerial_t *s = (softSerial_t *)instance;
return (s->port.rxBufferHead - s->port.rxBufferTail) & (s->port.txBufferSize - 1);
return (s->port.rxBufferHead - s->port.rxBufferTail) & (s->port.rxBufferSize - 1);
}
uint8_t softSerialReadByte(serialPort_t *instance)