Browse Source

cleaned warnings

pull/1131/head
lumapu 1 year ago
parent
commit
20649ee9f0
  1. 10
      src/platformio.ini
  2. 2
      src/wifi/ahoywifi.cpp

10
src/platformio.ini

@ -71,7 +71,7 @@ monitor_filters =
esp8266_exception_decoder
[env:esp32-wroom32]
platform = espressif32@6.1.0
platform = espressif32@6.3.2
board = lolin_d32
build_flags = ${env.build_flags}
-DUSE_HSPI_FOR_EPD
@ -79,7 +79,7 @@ monitor_filters =
esp32_exception_decoder
[env:esp32-wroom32-prometheus]
platform = espressif32@6.1.0
platform = espressif32@6.3.2
board = lolin_d32
build_flags = ${env.build_flags}
-DENABLE_PROMETHEUS_EP
@ -122,7 +122,7 @@ monitor_filters =
esp32_exception_decoder
[env:opendtufusionv1]
platform = espressif32@6.1.0
platform = espressif32@6.3.2
board = esp32-s3-devkitc-1
upload_protocol = esp-builtin
debug_tool = esp-builtin
@ -137,8 +137,8 @@ build_flags = ${env.build_flags}
-DDEF_CMT_CSB=4
-DDEF_CMT_FCSB=21
-DDEF_CMT_IRQ=8
-DDEF_LED0=17
-DDEF_LED1=18
-DDEF_LED0=18
-DDEF_LED1=17
-DLED_ACTIVE_HIGH
monitor_filters =
esp32_exception_decoder

2
src/wifi/ahoywifi.cpp

@ -71,11 +71,9 @@ void ahoywifi::setupWifi(bool startAP = false) {
void ahoywifi::tickWifiLoop() {
static const uint8_t DISCONN_TIMEOUT = 10;
static const uint8_t TIMEOUT = 20;
static const uint8_t SCAN_TIMEOUT = 10;
#if !defined(AP_ONLY)
uint8_t timeout = (mStaConn == DISCONNECTED) ? DISCONN_TIMEOUT : TIMEOUT; // seconds
mCnt++;

Loading…
Cancel
Save