added check for tx before parsing serial
This commit is contained in:
parent
d365fee768
commit
0689f95f74
|
@ -23,7 +23,7 @@ void KISS::loop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check if we have incoming data to turn into a packet
|
// 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();
|
uint8_t c = (uint8_t)io->read();
|
||||||
if(c == KISS_FEND) {
|
if(c == KISS_FEND) {
|
||||||
if(inFrame && kissLen > 0) {
|
if(inFrame && kissLen > 0) {
|
||||||
|
|
Loading…
Reference in New Issue