From 4a3b4104feb7f0948a8b9f97b39534fc68c62e73 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 23 Mar 2022 09:38:51 -0700 Subject: [PATCH] [Bug] Fix unused variable error when using ChibiOS Bitbang serial driver (#16709) --- platforms/chibios/drivers/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/chibios/drivers/serial.c b/platforms/chibios/drivers/serial.c index 6db5d85250..bb7b3c0554 100644 --- a/platforms/chibios/drivers/serial.c +++ b/platforms/chibios/drivers/serial.c @@ -171,7 +171,8 @@ void interrupt_handler(void *arg) { checksum_computed += split_trans_initiator2target_buffer(trans)[i]; } checksum_computed ^= 7; - uint8_t checksum_received = serial_read_byte(); + + serial_read_byte(); sync_send(); // wait for the sync to finish sending