瀏覽代碼

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]);
   }