Skip to content

Commit 23d75fc

Browse files
committed
Enable ESP Now upon pairing completion
1 parent 0ac2b37 commit 23d75fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/RTK_Surveyor/ESPNOW.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ bool espnowIsPaired()
223223
memcpy(settings.espnowPeers[settings.espnowPeerCount], receivedMAC, 6);
224224
settings.espnowPeerCount++;
225225
settings.espnowPeerCount %= ESPNOW_MAX_PEERS;
226+
227+
//Enable radio. User may have arrived here from the setup menu rather than serial menu.
228+
settings.radioType = RADIO_ESPNOW;
226229
}
227230

228231
//Send message directly to the received MAC (not unicast), then exit

0 commit comments

Comments
 (0)