feat: added boot text that informs about entering NFC mode w/o hx711

This commit is contained in:
anderl1969 committed 2026-03-29 17:04:57 +02:00
1 parent 14fa6e7fd0
commit bece16f012
3 files changed
+8 -10

No files matched your search

+3
View File
@@ -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 },
};
+1
View File
@@ -91,6 +91,7 @@ enum StringID : uint8_t {
STR_DOWNLOAD,
// No-Scale mode
STR_NOSCALE_MODE,
STR_NOSCALE_PROMPT,
STR_COUNT // must be last
+4 -10
View File
@@ -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));
}
}