diff options
author | Drashna Jaelre <drashna@live.com> | 2022-03-23 09:38:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 09:38:51 -0700 |
commit | 4a3b4104feb7f0948a8b9f97b39534fc68c62e73 (patch) | |
tree | 2092dca6c19db788a554b8197dc2bad234f36b93 /platforms/chibios/drivers | |
parent | 08aa54b66f0177648c4077bc3e6d4534c8dc4ad7 (diff) |
[Bug] Fix unused variable error when using ChibiOS Bitbang serial driver (#16709)
Diffstat (limited to 'platforms/chibios/drivers')
-rw-r--r-- | platforms/chibios/drivers/serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |