Parcourir la source

Fix bug in when DEBUG_PRINTF is enabled

Christopher Mullins il y a 8 ans
Parent
commit
eb89f38c48
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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]);
   }