diff --git a/examples/simple_secure_chat/main.cpp b/examples/simple_secure_chat/main.cpp index 8fed83d4..d80f7433 100644 --- a/examples/simple_secure_chat/main.cpp +++ b/examples/simple_secure_chat/main.cpp @@ -544,9 +544,9 @@ void setup() { fast_rng.begin(radio.random(0x7FFFFFFF)); #else char c = 0; - while (c != '\n') { // wait for ENTER to be pressed - if (Serial.available()) c = Serial.read(); - } +// while (c != '\n') { // wait for ENTER to be pressed +// if (Serial.available()) c = Serial.read(); +// } fast_rng.begin(millis()); #endif diff --git a/src/helpers/esp32/ESPNOWRadio.cpp b/src/helpers/esp32/ESPNOWRadio.cpp index 323392d3..b904e403 100644 --- a/src/helpers/esp32/ESPNOWRadio.cpp +++ b/src/helpers/esp32/ESPNOWRadio.cpp @@ -1,6 +1,7 @@ #include "ESPNOWRadio.h" #include #include +#include static uint8_t broadcastAddress[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; static esp_now_peer_info_t peerInfo; @@ -31,6 +32,8 @@ void ESPNOWRadio::begin() { return; } + esp_wifi_set_max_tx_power(80); // should be 20dBm + esp_now_register_send_cb(OnDataSent); esp_now_register_recv_cb(OnDataRecv);