...
 
Commits (2)
......@@ -84,7 +84,9 @@ void *PCGPIO_ThreadHandler___(void* properties) {
// printf("serial port disconnected!\n");
error_found = PCGPIO_STATUS_PORT_ERROR;
p->error_handler(p, PCGPIO_STATUS_PORT_ERROR);
} else {
}
while((p->end) != (p->start)) {
// no new serial data on this cycle, work on whatever
// is available in rxbuffer
unsigned char in = PCGPIO_GetNextChar___(p);
......@@ -196,7 +198,6 @@ void *PCGPIO_ThreadHandler___(void* properties) {
next_state = 0x7FFF;
p->error_handler(p, PCGPIO_STATUS_INVALID_CALLBACK);
}
p->state = next_state;
}
} else if(poll_result < 0) {
......