Skip to content

Commit

Permalink
Pedantic debug
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Jan 27, 2024
1 parent 8b0e7c2 commit e215666
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/src/rx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e215666

Please sign in to comment.