ci(ci-fix): esp32 chipset type hyphen issue

- wifi logging in iniSTA
This commit is contained in:
ZanzyTHEbar 2023-11-18 11:38:41 +00:00
parent 4f4ee1ad77
commit 660ca84d8e
2 changed files with 13 additions and 10 deletions

View File

@ -30,8 +30,6 @@ void WiFiHandler::begin() {
"power \n\r");
auto txpower = configManager.getWiFiTxPowerConfig();
log_d("Setting Wifi Power to: %d", txpower.power);
// log_d("Enabling STA mode \n\r");
// WiFi.mode(WIFI_STA);
log_d("Setting WiFi sleep mode to NONE \n\r");
WiFi.setSleep(false);
@ -147,8 +145,10 @@ bool WiFiHandler::iniSTA(const std::string& ssid,
while (WiFi.status() != WL_CONNECTED) {
progress++;
currentMillis = millis();
/* Helpers::update_progress_bar(progress, 100);
delay(301); */
log_i(".");
log_d("Progress: %d \n\r", progress);
/* Helpers::update_progress_bar(progress, 100);
delay(301); */
if ((currentMillis - startingMillis) >= connectionTimeout) {
wifiStateManager.setState(WiFiState_e::WiFiState_Error);
log_e("Connection to: %s TIMEOUT \n\r", ssid.c_str());

View File

@ -66,17 +66,20 @@ def createZip(source, target, env):
# detect the chip type
chip_type = env["BOARD_MCU"]
flash_size = '4'
# TODO: detect the flash size from the board manifest
if chip_type == "esp32s3":
if chip_type == "esp32":
flash_size = '4'
elif chip_type == "esp32s2":
flash_size = '2'
elif chip_type == "esp32c3":
flash_size = '2'
elif chip_type == "esp32s3":
flash_size = '8'
# capitalize the chip type
chip_type = chip_type.upper()
# add hyphen between ESP32 and the suffix (WROOM, WROVER, etc)
chip_type = chip_type.replace("ESP32", "ESP32-")
if chip_type == "esp32c3" or chip_type == "esp32s3" or chip_type == "esp32s2":
chip_type = chip_type.replace("ESP32", "ESP32-")
print("Flash Mode: %s" % flash_mode)
print("Chip Type: %s" % chip_type)