This commit is contained in:
Jos van Mourik
2024-07-26 02:11:21 +02:00
parent bd58ad48da
commit 66d2cc6101

View File

@@ -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));
}