Fix bugs.

This commit is contained in:
Jonathan Naylor
2020-11-18 20:35:07 +00:00
parent ca4fff2ba6
commit 029e7eef4a
4 changed files with 13 additions and 3 deletions
+10
View File
@@ -128,6 +128,16 @@ int CSerialPort::availableForReadInt(uint8_t n)
}
}
int CSerialPort::availableForWriteInt(uint8_t n)
{
switch (n) {
case 1U:
return !RINGBUFF_FULL(txBuffer1);
default:
return false;
}
}
uint8_t CSerialPort::readInt(uint8_t n)
{
switch (n) {