File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -781,6 +781,7 @@ wifi_ps_type_t WiFiGenericClass::getSleep() {
781
781
return _sleepEnabled;
782
782
}
783
783
784
+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
784
785
/* *
785
786
* control wifi band mode
786
787
* @param band_mode enum possible band modes
@@ -823,7 +824,6 @@ bool WiFiGenericClass::setBandMode(wifi_band_mode_t band_mode) {
823
824
#endif
824
825
}
825
826
826
- #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
827
827
/* *
828
828
* get the current enabled wifi band mode
829
829
* @return enum band mode
@@ -844,6 +844,7 @@ wifi_band_mode_t WiFiGenericClass::getBandMode() {
844
844
return WIFI_BAND_MODE_2G_ONLY;
845
845
#endif
846
846
}
847
+ #endif
847
848
848
849
/* *
849
850
* get the current active wifi band
@@ -865,7 +866,6 @@ wifi_band_t WiFiGenericClass::getBand() {
865
866
return WIFI_BAND_2G;
866
867
#endif
867
868
}
868
- #endif
869
869
870
870
/* *
871
871
* control wifi tx power
You can’t perform that action at this time.
0 commit comments