Exit serial forwarding on error
This commit is contained in:
parent
a63fc332de
commit
d7ab98ee50
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ void serial(HID_Dev *cmd) {
|
|||
pthread_t stdinFwd;
|
||||
pthread_create(&stdinFwd, NULL, forward_stdin, cmd);
|
||||
for (;;) {
|
||||
if (recv_hid(cmd, 10)) {
|
||||
if (recv_hid(cmd, -1)) {
|
||||
if (cmd->serial)
|
||||
write(cmd->serial, cmd->buf, cmd->size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue