diff --git a/src/src/rx_main.cpp b/src/src/rx_main.cpp index 8a4c7078ec..7d5fdad28f 100644 --- a/src/src/rx_main.cpp +++ b/src/src/rx_main.cpp @@ -853,14 +853,15 @@ static void ICACHE_RAM_ATTR ProcessRfPacket_RC(OTA_Packet_s const * const otaPkt void ICACHE_RAM_ATTR OnELRSBindMSP(uint8_t* newUid4) { + // Binding over MSP only contains 4 bytes due to packet size limitations, clear out any leading bytes UID[0] = 0; UID[1] = 0; - for (int i = 0; i < 4; i++) + for (unsigned i = 0; i < 4; i++) { UID[i + 2] = newUid4[i]; } - DBGLN("New UID = %d, %d, %d, %d, %d, %d", UID[0], UID[1], UID[2], UID[3], UID[4], UID[5]); + DBGLN("New UID = %u, %u, %u, %u, %u, %u", UID[0], UID[1], UID[2], UID[3], UID[4], UID[5]); // Set new UID in eeprom // EEPROM commit will happen on the main thread in ExitBindingMode()