Skip to content

Commit 03749f0

Browse files
committed
fix(build): Fix WiFi for IDF 5.3
1 parent 64cad88 commit 03749f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ wifi_ps_type_t WiFiGenericClass::getSleep() {
781781
return _sleepEnabled;
782782
}
783783

784+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
784785
/**
785786
* control wifi band mode
786787
* @param band_mode enum possible band modes
@@ -823,7 +824,6 @@ bool WiFiGenericClass::setBandMode(wifi_band_mode_t band_mode) {
823824
#endif
824825
}
825826

826-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
827827
/**
828828
* get the current enabled wifi band mode
829829
* @return enum band mode
@@ -844,6 +844,7 @@ wifi_band_mode_t WiFiGenericClass::getBandMode() {
844844
return WIFI_BAND_MODE_2G_ONLY;
845845
#endif
846846
}
847+
#endif
847848

848849
/**
849850
* get the current active wifi band
@@ -865,7 +866,6 @@ wifi_band_t WiFiGenericClass::getBand() {
865866
return WIFI_BAND_2G;
866867
#endif
867868
}
868-
#endif
869869

870870
/**
871871
* control wifi tx power

0 commit comments

Comments
 (0)