Explorar o código

Fix bug in when DEBUG_PRINTF is enabled

Christopher Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
eb89f38c48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/MiLight/MiLightClient.cpp

+ 1 - 1
lib/MiLight/MiLightClient.cpp

@@ -122,7 +122,7 @@ void MiLightClient::write(uint8_t packet[]) {
   }
 
 #ifdef DEBUG_PRINTF
-  printf("Sending packet (%d repeats): ", this->resendCount);
+  printf("Sending packet (%d repeats): ", this->currentResendCount);
   for (int i = 0; i < currentRemote->packetFormatter->getPacketLength(); i++) {
     printf("%02X", packet[i]);
   }