Skip to content

Commit 96e916b

Browse files
committed
Remove redundant espNowAddPeer
1 parent 8d87b96 commit 96e916b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Firmware/RTK_Everywhere/ESPNOW.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@ void espNowBeginPairing()
9696
}
9797

9898
// Start ESP-NOW if necessary
99+
// If no peers are on file, automatically add the broadcast MAC to the peer list
99100
wifiEspNowOn(__FILE__, __LINE__);
100101

101-
// To begin pairing, we must add the broadcast MAC to the peer list
102-
espNowAddPeer(espNowBroadcastAddr, false); // Encryption is not supported for multicast addresses
103-
104102
espNowSetState(ESPNOW_PAIRING);
105103
}
106104

0 commit comments

Comments
 (0)