Skip to content

Commit 7b0e01a

Browse files
committed
WiFi: Replace wifiIsConnected with WIFI_IS_CONNECTED macro
1 parent 2ae9b03 commit 7b0e01a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Firmware/RTK_Everywhere/ESPNOW.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ void espnowStart()
663663
esp_wifi_set_promiscuous_rx_cb(&promiscuous_rx_cb);
664664

665665
// Assign channel if not connected to an AP
666-
if (wifiIsConnected() == false)
666+
if (WIFI_IS_CONNECTED() == false)
667667
espnowSetChannel(settings.wifiChannel);
668668

669669
// Register callbacks
@@ -1059,7 +1059,7 @@ uint8_t espnowGetChannel()
10591059
// Returns the current channel being used by WiFi
10601060
bool espnowSetChannel(uint8_t channelNumber)
10611061
{
1062-
if (wifiIsConnected() == true)
1062+
if (WIFI_IS_CONNECTED() == true)
10631063
{
10641064
systemPrintln("ESP-NOW channel can't be modified while WiFi is connected.");
10651065
return (false);

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ char logFileName[sizeof("SFE_Reference_Station_230101_120101.ubx_plusExtraSpace"
306306
int packetRSSI;
307307
RTK_WIFI wifi(false);
308308

309+
#define WIFI_IS_CONNECTED() wifiIsConnected()
309310
#define WIFI_IS_RUNNING() wifiIsRunning()
310311
#define WIFI_STOP() \
311312
{ \

0 commit comments

Comments
 (0)