ソースを参照

Fix bug in when DEBUG_PRINTF is enabled

Christopher Mullins 8 年 前
コミット
eb89f38c48
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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]);
   }