File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ void espnowStart()
663
663
esp_wifi_set_promiscuous_rx_cb (&promiscuous_rx_cb);
664
664
665
665
// Assign channel if not connected to an AP
666
- if (wifiIsConnected () == false )
666
+ if (WIFI_IS_CONNECTED () == false )
667
667
espnowSetChannel (settings.wifiChannel );
668
668
669
669
// Register callbacks
@@ -1059,7 +1059,7 @@ uint8_t espnowGetChannel()
1059
1059
// Returns the current channel being used by WiFi
1060
1060
bool espnowSetChannel (uint8_t channelNumber)
1061
1061
{
1062
- if (wifiIsConnected () == true )
1062
+ if (WIFI_IS_CONNECTED () == true )
1063
1063
{
1064
1064
systemPrintln (" ESP-NOW channel can't be modified while WiFi is connected." );
1065
1065
return (false );
Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ char logFileName[sizeof("SFE_Reference_Station_230101_120101.ubx_plusExtraSpace"
306
306
int packetRSSI;
307
307
RTK_WIFI wifi (false );
308
308
309
+ #define WIFI_IS_CONNECTED () wifiIsConnected()
309
310
#define WIFI_IS_RUNNING () wifiIsRunning()
310
311
#define WIFI_STOP () \
311
312
{ \
You can’t perform that action at this time.
0 commit comments