added check for tx before parsing serial

This commit is contained in:
Morgan Redfield 2017-02-03 11:35:06 -08:00
parent d365fee768
commit 0689f95f74
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ void KISS::loop() {
}
}
// Check if we have incoming data to turn into a packet
while(io->available()) {
while(currentlySending == false && io->available()) {
uint8_t c = (uint8_t)io->read();
if(c == KISS_FEND) {
if(inFrame && kissLen > 0) {