diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-29 16:27:29 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-29 16:27:29 +0200 |
commit | 3b2c2cf6b2af9e76b343a5a8fc8e9245f240690d (patch) | |
tree | f257a9a03b8205f55301901d00c5865f8b179607 /client/serial_linux.c | |
parent | f466856892d94f5b42bf2369cae0fd73dd468dfa (diff) |
serial parsing working on client
Diffstat (limited to 'client/serial_linux.c')
-rw-r--r-- | client/serial_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/serial_linux.c b/client/serial_linux.c index 080dca1..2497fac 100644 --- a/client/serial_linux.c +++ b/client/serial_linux.c @@ -63,7 +63,7 @@ speed_t w2_baud_map(int baud) { int w2_serial_read() { int return_val; int bytes = read(g_w2_serial_handle, &return_val, 1); - return return_val == -1 || bytes != 1 ? -1 : (uint8_t)return_val; + return bytes != 1 ? -1 : (uint8_t)return_val; } bool w2_serial_write(char *data, uint8_t length) { |