From dc5d2f85cf972534dd39ea3788e5167567a82a13 Mon Sep 17 00:00:00 2001 From: Felix Rusu Date: Mon, 6 Apr 2020 21:07:10 -0400 Subject: [PATCH] Address #131 --- RFM69_OTA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RFM69_OTA.cpp b/RFM69_OTA.cpp index 3860050..25aef58 100644 --- a/RFM69_OTA.cpp +++ b/RFM69_OTA.cpp @@ -500,7 +500,7 @@ uint8_t sendHEXPacket(RFM69& radio, uint8_t targetID, uint8_t* sendBuf, uint8_t radio.DATA[ackLen-2]=='O' && radio.DATA[ackLen-1]=='K') { uint16_t tmp=0; - sscanf((const char*)radio.DATA, "FLX:%u:OK", &tmp); + sscanf((const char*)radio.DATA, "FLX:%hu:OK", &tmp); return tmp == seq; } }