Explorar o código

[Bug] Fix unused variable error when using ChibiOS Bitbang serial driver (#16709)

Drashna Jaelre %!s(int64=3) %!d(string=hai) anos
pai
achega
4a3b4104fe
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      platforms/chibios/drivers/serial.c

+ 2 - 1
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