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() {
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
You can’t perform that action at this time.
0 commit comments