aboutsummaryrefslogtreecommitdiff
path: root/client/serial_linux.c
diff options
context:
space:
mode:
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) {