Don't send discovery message if encrypting is disabled in espnow

This commit is contained in:
Oleg Kalachev
2026-08-02 02:07:17 +03:00
parent 38925d7885
commit 5ee6d91440
+1 -1
View File
@@ -58,7 +58,7 @@ void sendWiFi(const uint8_t *buf, int len) {
espnow.write(buf, len);
static Rate discovery(2);
if (discovery) espnowBroadcast.write((const uint8_t *)"flix", 4); // broadcast message to help finding this device
if (espnow.isEncrypted() && discovery) espnowBroadcast.write((const uint8_t *)"flix", 4); // broadcast message to help finding this device
return;
}