aboutsummaryrefslogtreecommitdiff
path: root/client/serial_linux.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-29 16:27:29 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-29 16:27:29 +0200
commit3b2c2cf6b2af9e76b343a5a8fc8e9245f240690d (patch)
treef257a9a03b8205f55301901d00c5865f8b179607 /client/serial_linux.c
parentf466856892d94f5b42bf2369cae0fd73dd468dfa (diff)
serial parsing working on client
Diffstat (limited to 'client/serial_linux.c')
-rw-r--r--client/serial_linux.c2
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) {