Cleanup
This commit is contained in:
@@ -176,8 +176,9 @@ microtouch_process_commands(mouse_microtouch_t *mtouch)
|
||||
fifo8_push(&mtouch->resp, 1);
|
||||
fifo8_push_all(&mtouch->resp, (uint8_t *) "A\r", 2);
|
||||
}
|
||||
if (fifo8_num_used(&mtouch->resp) != fifo_used)
|
||||
if (fifo8_num_used(&mtouch->resp) != fifo_used) {
|
||||
pclog("Command received: %s\n", mtouch->cmd);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -193,10 +194,9 @@ mtouch_write_to_host(void *priv)
|
||||
goto no_write_to_machine;
|
||||
}
|
||||
}
|
||||
|
||||
if (dev->in_reset)
|
||||
if (dev->in_reset) {
|
||||
goto no_write_to_machine;
|
||||
|
||||
}
|
||||
if (fifo8_num_used(&dev->resp)) {
|
||||
serial_write_fifo(dev->serial, fifo8_pop(&dev->resp));
|
||||
}
|
||||
|
Reference in New Issue
Block a user