diff --git a/src/lang.cpp b/src/lang.cpp index 1afe9e6..fc236a7 100644 --- a/src/lang.cpp +++ b/src/lang.cpp @@ -78,6 +78,7 @@ static const char EN_WIFI_RECONN[] = "WiFi reconnecting"; static const char EN_UPDATE[] = "Update"; static const char EN_DOWNLOAD[] = "Download"; +static const char EN_NOSCALE_MODE[] = "Activate NFC-only mode"; static const char EN_NOSCALE_PROMPT[] = "ready..."; // ===================================================================== @@ -154,6 +155,7 @@ static const char DE_WIFI_RECONN[] = "WiFi Neuverbindung"; static const char DE_UPDATE[] = "Update"; static const char DE_DOWNLOAD[] = "Download"; +static const char DE_NOSCALE_MODE[] = "Aktiviere NFC-only Modus"; static const char DE_NOSCALE_PROMPT[] = "bereit..."; // ===================================================================== @@ -239,6 +241,7 @@ static const char* const stringTable[STR_COUNT][LANG_COUNT] = { { EN_DOWNLOAD, DE_DOWNLOAD }, // No-Scale mode + { EN_NOSCALE_MODE, DE_NOSCALE_MODE }, { EN_NOSCALE_PROMPT, DE_NOSCALE_PROMPT }, }; diff --git a/src/lang.h b/src/lang.h index 97fd60a..342338b 100644 --- a/src/lang.h +++ b/src/lang.h @@ -91,6 +91,7 @@ enum StringID : uint8_t { STR_DOWNLOAD, // No-Scale mode + STR_NOSCALE_MODE, STR_NOSCALE_PROMPT, STR_COUNT // must be last diff --git a/src/scale.cpp b/src/scale.cpp index efb0a7a..f6e08ea 100644 --- a/src/scale.cpp +++ b/src/scale.cpp @@ -362,15 +362,6 @@ void start_scale(bool touchSensorConnected) { oledShowProgressBar(5, NUM_SETUP_STEPS, DISPLAY_BOOT_TEXT, tr(STR_SEARCHING_SCALE)); friendlyWait(3000); - // for (uint16_t i = 0; i < 3000; i++) { - // yield(); - // vTaskDelay(pdMS_TO_TICKS(1)); - // esp_task_wdt_reset(); - // } - - // while(!scale.is_ready()) { - // vTaskDelay(pdMS_TO_TICKS(5000)); - // } scaleConnected = scaleDetected(); if ( scaleConnected ) { @@ -400,9 +391,12 @@ void start_scale(bool touchSensorConnected) { } } else { + // No HX711 - switching to NFC-only mode Serial.println("Kann kein HX711 Board finden !"); // Sende Text "Kann kein..." an seriellen Monitor oledDisplayText(tr(STR_HX711_NOT_FOUND)); - vTaskDelay(pdMS_TO_TICKS(2000)); + vTaskDelay(pdMS_TO_TICKS(1500)); + oledDisplayText(tr(STR_NOSCALE_MODE)); + vTaskDelay(pdMS_TO_TICKS(1500)); } }