Skip to content

Commit 32528ec

Browse files
authored
Remove debug if
1 parent cafa5f1 commit 32528ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,16 +558,14 @@ bool wifiLowLevelInit(bool persistent){
558558

559559
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
560560

561-
#if 1
562-
// TWEAK to force Dynamic Buffer instead of Static ones
563-
// This uses less heap space in Arduino and makes it similar to 1.0.6 configuration
561+
// this code forces WiFi to go with Dynamic Buffers
562+
// it bypasses sdkconfig definitions!
564563
cfg.static_tx_buf_num = 0;
565564
cfg.dynamic_tx_buf_num = 32;
566565
cfg.tx_buf_type = 1;
567-
cfg.cache_tx_buf_num = 1; // it can't be zero for WPA/WPA2
566+
cfg.cache_tx_buf_num = 1; // can't be zero!
568567
cfg.static_rx_buf_num = 4;
569568
cfg.dynamic_rx_buf_num = 32;
570-
#endif
571569

572570
esp_err_t err = esp_wifi_init(&cfg);
573571
if(err){

0 commit comments

Comments
 (0)