mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-09-26 23:29:14 +08:00
ci(ci-fix): esp32 chipset type hyphen issue
- wifi logging in iniSTA
This commit is contained in:
parent
4f4ee1ad77
commit
660ca84d8e
@ -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());
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user