Skip to content

Commit

Permalink
Add some ESPNow debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Nov 5, 2024
1 parent 9a9194e commit 94d58b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/espnowconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void ESPNowConnection::handleMessage(uint8_t *senderMacAddress, const uint8_t *d
configuration.saveDongleConnection(senderMacAddress, message->pairingAck.trackerId);
trackerId = message->pairingAck.trackerId;
memcpy(dongleMacAddress, senderMacAddress, sizeof(uint8_t) * 6);
m_Logger.info("Paired to dongle at mac address " MACSTR "!", MAC2ARGS(senderMacAddress));
m_Logger.info("Paired to dongle at mac address " MACSTR " as tracker %d!", MAC2ARGS(senderMacAddress), trackerId);
registerPeer(senderMacAddress);
paired = true;
connected = true;
Expand All @@ -220,7 +220,7 @@ void ESPNowConnection::handleMessage(uint8_t *senderMacAddress, const uint8_t *d
}
ledManager.pattern(100, 100, 2);
connected = true;
m_Logger.info("Connected to dongle at mac address " MACSTR "!", MAC2ARGS(dongleMacAddress));
m_Logger.info("Connected to dongle at mac address " MACSTR " as tracker %d!", MAC2ARGS(dongleMacAddress), trackerId);
return;
case ESPNow::ESPNowMessageHeader::Packet:
return;
Expand Down

0 comments on commit 94d58b9

Please sign in to comment.