From 34db06ab9ce67dd77867f6fd9a3b04ce48e0a35b Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:00:26 +0200 Subject: [PATCH 01/24] Update Soldering.cpp allow to use remaining state1 for timer --- source/Core/Threads/UI/logic/Soldering.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 93be8841..27dbc899 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -7,7 +7,7 @@ // State 3 = buzzer timer OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) { - if (cxt->scratch_state.state1 >= 2) { + if (cxt->scratch_state.state1 & (2|3)) { // Buttons are currently locked switch (buttons) { case BUTTON_F_LONG: @@ -16,17 +16,21 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } break; case BUTTON_BOTH_LONG: - if (cxt->scratch_state.state1 == 3) { + if ((cxt->scratch_state.state1 & (2|3)) == 3) { // Unlocking if (warnUser(translatedString(Tr->UnlockingKeysString), buttons)) { - cxt->scratch_state.state1 = 1; + // cxt->scratch_state.state1 &= ~3; + // cxt->scratch_state.state1 |= 1; + cxt->scratch_state.state1 &= ~2; } } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons); } break; case BUTTON_NONE: - cxt->scratch_state.state1 = 3; + //cxt->scratch_state.state1 &= ~2; + //cxt->scratch_state.state1 |= 3; + cxt->scratch_state.state1 |= 3; break; default: // Do nothing and display a lock warning warnUser(translatedString(Tr->WarningKeysLockedString), buttons); @@ -38,7 +42,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) switch (buttons) { case BUTTON_NONE: cxt->scratch_state.state2 = 0; - cxt->scratch_state.state1 = 0; + cxt->scratch_state.state1 &= ~1; break; case BUTTON_BOTH: /*Fall through*/ @@ -58,9 +62,9 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) case BUTTON_BOTH_LONG: if (getSettingValue(SettingsOptions::LockingMode)) { // Lock buttons - if (cxt->scratch_state.state1 == 0) { + if ((cxt->scratch_state.state1 & 1) == 0) { if (warnUser(translatedString(Tr->LockingKeysString), buttons)) { - cxt->scratch_state.state1 = 2; + cxt->scratch_state.state1 |= 2; } } else { // FIXME should be WarningKeysUnlockedString From c0ba6eb30d1acfd9ad44920ee61b7f4cfdeb71e0 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:29:53 +0200 Subject: [PATCH 02/24] Update Soldering.cpp revert last commit --- source/Core/Threads/UI/logic/Soldering.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 27dbc899..93be8841 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -7,7 +7,7 @@ // State 3 = buzzer timer OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) { - if (cxt->scratch_state.state1 & (2|3)) { + if (cxt->scratch_state.state1 >= 2) { // Buttons are currently locked switch (buttons) { case BUTTON_F_LONG: @@ -16,21 +16,17 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } break; case BUTTON_BOTH_LONG: - if ((cxt->scratch_state.state1 & (2|3)) == 3) { + if (cxt->scratch_state.state1 == 3) { // Unlocking if (warnUser(translatedString(Tr->UnlockingKeysString), buttons)) { - // cxt->scratch_state.state1 &= ~3; - // cxt->scratch_state.state1 |= 1; - cxt->scratch_state.state1 &= ~2; + cxt->scratch_state.state1 = 1; } } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons); } break; case BUTTON_NONE: - //cxt->scratch_state.state1 &= ~2; - //cxt->scratch_state.state1 |= 3; - cxt->scratch_state.state1 |= 3; + cxt->scratch_state.state1 = 3; break; default: // Do nothing and display a lock warning warnUser(translatedString(Tr->WarningKeysLockedString), buttons); @@ -42,7 +38,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) switch (buttons) { case BUTTON_NONE: cxt->scratch_state.state2 = 0; - cxt->scratch_state.state1 &= ~1; + cxt->scratch_state.state1 = 0; break; case BUTTON_BOTH: /*Fall through*/ @@ -62,9 +58,9 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) case BUTTON_BOTH_LONG: if (getSettingValue(SettingsOptions::LockingMode)) { // Lock buttons - if ((cxt->scratch_state.state1 & 1) == 0) { + if (cxt->scratch_state.state1 == 0) { if (warnUser(translatedString(Tr->LockingKeysString), buttons)) { - cxt->scratch_state.state1 |= 2; + cxt->scratch_state.state1 = 2; } } else { // FIXME should be WarningKeysUnlockedString From ae55d5c3de4a7503d700f4e53f5072f42ce7547d Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:41:07 +0200 Subject: [PATCH 03/24] Update Soldering.cpp show the locked warning for half a second --- source/Core/Threads/UI/logic/Soldering.cpp | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 93be8841..35875471 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -9,12 +9,16 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) { if (cxt->scratch_state.state1 >= 2) { // Buttons are currently locked - switch (buttons) { - case BUTTON_F_LONG: - if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::BOOST)) { - cxt->scratch_state.state2 = 1; + if (cxt->scratch_state.state1 > 3) { + // show locked until timer is up + if ((cxt->scratch_state.state1 >> 2) < xTaskGetTickCount()) { + cxt->scratch_state.state1 &= 3; + } else { + warnUser(translatedString(Tr->WarningKeysLockedString), buttons); + return OperatingMode::Soldering; } - break; + } + switch (buttons) { case BUTTON_BOTH_LONG: if (cxt->scratch_state.state1 == 3) { // Unlocking @@ -28,7 +32,14 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) case BUTTON_NONE: cxt->scratch_state.state1 = 3; break; - default: // Do nothing and display a lock warning + case BUTTON_F_LONG: + if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::BOOST)) { + cxt->scratch_state.state2 = 1; + break; + } + /*Fall through*/ + default: // Set timer for and display a lock warning + cxt->scratch_state.state1 |= (xTaskGetTickCount() + TICKS_SECOND / 2) << 2; warnUser(translatedString(Tr->WarningKeysLockedString), buttons); break; } From ea2deb0e129323649b66712ef2045f3c8458a648 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:56:09 +0200 Subject: [PATCH 04/24] Update Soldering.cpp change locked warning display time to 1 second --- source/Core/Threads/UI/logic/Soldering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 35875471..f4ff487e 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -39,7 +39,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } /*Fall through*/ default: // Set timer for and display a lock warning - cxt->scratch_state.state1 |= (xTaskGetTickCount() + TICKS_SECOND / 2) << 2; + cxt->scratch_state.state1 |= (xTaskGetTickCount() + TICKS_SECOND) << 2; warnUser(translatedString(Tr->WarningKeysLockedString), buttons); break; } From 3d43354ea1ab748217686fda9e7adfc0257721f7 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:39:14 +0200 Subject: [PATCH 05/24] Update Soldering.cpp fix timer logic --- source/Core/Threads/UI/logic/Soldering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index f4ff487e..35e5e979 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -11,7 +11,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) // Buttons are currently locked if (cxt->scratch_state.state1 > 3) { // show locked until timer is up - if ((cxt->scratch_state.state1 >> 2) < xTaskGetTickCount()) { + if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND) { cxt->scratch_state.state1 &= 3; } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons); From 697b0c795d01098a526de40020fb320c82db02bb Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:54:26 +0200 Subject: [PATCH 06/24] Update Soldering.cpp fix another logic error --- source/Core/Threads/UI/logic/Soldering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 35e5e979..e7559e73 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -11,7 +11,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) // Buttons are currently locked if (cxt->scratch_state.state1 > 3) { // show locked until timer is up - if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND) { + if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND << 2) { cxt->scratch_state.state1 &= 3; } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons); From c002f45c7ea649c8b73642420bd721b710820649 Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:46:20 +0200 Subject: [PATCH 07/24] making the LOCKED / UNLOCKED stay for a second --- source/Core/Threads/UI/logic/Soldering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index e7559e73..53d44d1c 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -26,7 +26,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) cxt->scratch_state.state1 = 1; } } else { - warnUser(translatedString(Tr->WarningKeysLockedString), buttons); + vTaskDelay(TICKS_SECOND); } break; case BUTTON_NONE: @@ -76,6 +76,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } else { // FIXME should be WarningKeysUnlockedString warnUser(translatedString(Tr->UnlockingKeysString), buttons); + vTaskDelay(TICKS_SECOND); } } break; From cae14dee6ae309b9a3e971aa6497f68874780732 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:44:15 +0200 Subject: [PATCH 08/24] Update OperatingModes.h add state7 for locked timer ticks --- source/Core/Threads/UI/logic/OperatingModes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Core/Threads/UI/logic/OperatingModes.h b/source/Core/Threads/UI/logic/OperatingModes.h index 5387f64a..a2c08a7d 100644 --- a/source/Core/Threads/UI/logic/OperatingModes.h +++ b/source/Core/Threads/UI/logic/OperatingModes.h @@ -62,6 +62,7 @@ struct guiContext { uint32_t state4; // 32 bit state scratch uint16_t state5; // 16 bit state scratch uint16_t state6; // 16 bit state scratch + uint32_t state7; // 32 bit state scratch } scratch_state; }; From dfbf45a1c480abe30847be3fb0915d360707943d Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:54:33 +0200 Subject: [PATCH 09/24] Update Soldering.cpp fix timed locked warning based on review comments with additional state7 field. --- source/Core/Threads/UI/logic/Soldering.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 53d44d1c..35a7398a 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -9,10 +9,10 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) { if (cxt->scratch_state.state1 >= 2) { // Buttons are currently locked - if (cxt->scratch_state.state1 > 3) { + if (cxt->scratch_state.state7 != 0) { // show locked until timer is up - if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND << 2) { - cxt->scratch_state.state1 &= 3; + if (xTaskGetTickCount() >= cxt->scratch_state.state7) { + cxt->scratch_state.state7 = 0; } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons); return OperatingMode::Soldering; @@ -26,7 +26,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) cxt->scratch_state.state1 = 1; } } else { - vTaskDelay(TICKS_SECOND); + warnUser(translatedString(Tr->WarningKeysLockedString), buttons); } break; case BUTTON_NONE: @@ -39,7 +39,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } /*Fall through*/ default: // Set timer for and display a lock warning - cxt->scratch_state.state1 |= (xTaskGetTickCount() + TICKS_SECOND) << 2; + cxt->scratch_state.state7 = xTaskGetTickCount() + TICKS_SECOND; warnUser(translatedString(Tr->WarningKeysLockedString), buttons); break; } @@ -76,7 +76,6 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } else { // FIXME should be WarningKeysUnlockedString warnUser(translatedString(Tr->UnlockingKeysString), buttons); - vTaskDelay(TICKS_SECOND); } } break; From 845a28b189b8bdc2ccf57fda47a1cce3c7acc6be Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:32:29 +0300 Subject: [PATCH 10/24] Update translation_FI.json --- Translations/translation_FI.json | 136 +++++++++++++++---------------- 1 file changed, 68 insertions(+), 68 deletions(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 3381a62e..344f5d22 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -4,13 +4,13 @@ "tempUnitFahrenheit": false, "messagesWarn": { "CalibrationDone": { - "message": "Calibration\ndone!" + "message": "Kalibrointi\nvalmis!" }, "ResetOKMessage": { - "message": "Palautus" + "message": "Tehdasasetukset\npalautettu!" }, "SettingsResetMessage": { - "message": "Asetukset\npalautettu!" + "message": "Tehdasasetukset\npalautettu!" }, "NoAccelerometerMessage": { "message": "Kiihtyvyysanturi\npuuttuu!" @@ -19,34 +19,34 @@ "message": "USB-PD IC\npuuttuu!" }, "LockingKeysString": { - "message": " LUKITTU" + "message": "Näppäinlukko\nkäytössä." }, "UnlockingKeysString": { - "message": "AUKI" + "message": "Näppäimet\käytössä." }, "WarningKeysLockedString": { - "message": "!LUKKO!" + "message": "!Näppäimet\nlukittu!!" }, "WarningThermalRunaway": { - "message": "Thermal\nRunaway" + "message": "!Lämmönsäätelyn\nhäiriö!" }, "WarningTipShorted": { - "message": "!Tip Shorted!" + "message": "!Kärki\noikosulussa!" }, "SettingsCalibrationWarning": { - "message": "Before rebooting, make sure tip & handle are at room temperature!" + "message": "Varmista laitteen ja kärjen huoneenlämpöisyys ennen uudelleenkäynnistystä.!" }, "CJCCalibrating": { - "message": "calibrating\n" + "message": "Kalibroidaan\n" }, "SettingsResetWarning": { "message": "Haluatko varmasti palauttaa oletusarvot?" }, "UVLOWarningString": { - "message": "DC ALH." + "message": "DC jännite alhainen." }, "UndervoltageString": { - "message": "Alijännite\n" + "message": "Alijännite.\n" }, "InputVoltageString": { "message": "Jännite: \n" @@ -58,16 +58,16 @@ "message": "Kärki: \n" }, "ProfilePreheatString": { - "message": "Preheat\n" + "message": "Esilämmitetään\n" }, "ProfileCooldownString": { - "message": "Cooldown\n" + "message": "Jäähtyy\n" }, "DeviceFailedValidationWarning": { - "message": "Your device is most likely a counterfeit!" + "message": "Laite saattaa olla väärennös!" }, "TooHotToStartProfileWarning": { - "message": "Too hot to\nstart profile" + "message": "Lämpötila liian korkea\nprofiilin aloitukseen!" } }, "characters": { @@ -107,13 +107,13 @@ }, "menuValues": { "USBPDModeDefault": { - "displayText": "Default\nMode" + "displayText": "USB-PD\noletus-tila" }, "USBPDModeNoDynamic": { - "displayText": "No\nDynamic" + "displayText": "USB-PD\nvakaa-tila" }, "USBPDModeSafe": { - "displayText": "Safe\nMode" + "displayText": "USB-PD\nturva-tila" } }, "menuOptions": { @@ -127,19 +127,19 @@ }, "QCMaxVoltage": { "displayText": "QC\njännite", - "description": "Ensisijainen maksimi QC jännite" + "description": "Ensisijainen maksimi QC jännite." }, "PDNegTimeout": { - "displayText": "PD\ntimeout", - "description": "PD negotiation timeout in 100ms steps for compatibility with some QC chargers" + "displayText": "PD\naikakatkaisu", + "description": "PD neuvottelun aikakatkaisu 100ms askelin joitakin QC-latureita varten." }, "USBPDMode": { - "displayText": "PD\nMode", - "description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance" + "displayText": "PD\ntila", + "description": "Vakaa tila ei käytä EPR & PPS, turva-tila ei käytä vastuksen pehmustusta." }, "BoostTemperature": { "displayText": "Tehostus-\nlämpötila", - "description": "Tehostustilan lämpötila" + "description": "Tehostustilan lämpötila." }, "AutoStart": { "displayText": "Autom.\nkäynnistys", @@ -147,71 +147,71 @@ }, "TempChangeShortStep": { "displayText": "Lämmön muutos\nlyhyt painal.", - "description": "Lämpötilan muutos lyhyellä painalluksella" + "description": "Lämpötilan muutos lyhyellä painalluksella." }, "TempChangeLongStep": { "displayText": "Lämmön muutos\npitkä painal.", - "description": "Lämpötilan muutos pitkällä painalluksella" + "description": "Lämpötilan muutos pitkällä painalluksella." }, "LockingMode": { "displayText": "Salli nappien\nlukitus", "description": "Kolvatessa paina molempia näppäimiä lukitaksesi ne (V=vain tehostus | K=kaikki)" }, "ProfilePhases": { - "displayText": "Profile\nPhases", - "description": "Number of phases in profile mode" + "displayText": "Profiili\nvaiheet", + "description": "Vaiheiden määrä profiilitilassa." }, "ProfilePreheatTemp": { - "displayText": "Preheat\nTemp", - "description": "Preheat to this temperature at the start of profile mode" + "displayText": "Esilämmityksen\nlämpötila", + "description": "Esilämmittää tähän lämpötilaan profiilitilan alussa." }, "ProfilePreheatSpeed": { - "displayText": "Preheat\nSpeed", - "description": "Preheat at this rate (degrees per second)" + "displayText": "Esilämmityksen\nnopeus", + "description": "Esilämmityksen nopeus (asteita/sekunti)" }, "ProfilePhase1Temp": { - "displayText": "Phase 1\nTemp", - "description": "Target temperature for the end of this phase" + "displayText": "Vaiheen 1\nTemp", + "description": "Kohdelämpötila tämän vaiheen lopussa." }, "ProfilePhase1Duration": { - "displayText": "Phase 1\nDuration", - "description": "Target duration of this phase (seconds)" + "displayText": "Vaiheen 1\nkesto", + "description": "Tämän vaiheen ajankäyttö (sekunteina) Saattaa kestää kauemmin jos lämmitys hitaampaa." }, "ProfilePhase2Temp": { - "displayText": "Phase 2\nTemp", - "description": "" + "displayText": "Vaiheen 2\nlämpötila", + "description": "Kohdelämpötila tämän vaiheen lopussa." }, "ProfilePhase2Duration": { - "displayText": "Phase 2\nDuration", - "description": "" + "displayText": "Vaiheen 2\nkesto", + "description": "Tämän vaiheen ajankäyttö (sekunteina) Saattaa kestää kauemmin jos lämmitys hitaampaa." }, "ProfilePhase3Temp": { - "displayText": "Phase 3\nTemp", - "description": "" + "displayText": "Vaiheen 3\nlämpötila", + "description": "Kohdelämpötila tämän vaiheen lopussa." }, "ProfilePhase3Duration": { - "displayText": "Phase 3\nDuration", - "description": "" + "displayText": "Vaiheen 3\nkesto", + "description": "Tämän vaiheen ajankäyttö (sekunteina) Saattaa kestää kauemmin jos lämmitys hitaampaa." }, "ProfilePhase4Temp": { - "displayText": "Phase 4\nTemp", - "description": "" + "displayText": "Vaiheen 4\nlämpötila", + "description": "Kohdelämpötila tämän vaiheen lopussa." }, "ProfilePhase4Duration": { - "displayText": "Phase 4\nDuration", - "description": "" + "displayText": "Vaiheen 4\nkesto", + "description": "Tämän vaiheen ajankäyttö (sekunteina) Saattaa kestää kauemmin jos lämmitys hitaampaa." }, "ProfilePhase5Temp": { - "displayText": "Phase 5\nTemp", - "description": "" + "displayText": "Vaiheen 5\nlämpötila", + "description": "Kohdelämpötila tämän vaiheen lopussa." }, "ProfilePhase5Duration": { - "displayText": "Phase 5\nDuration", - "description": "" + "displayText": "Vaiheen 5\nkesto", + "description": "Tämän vaiheen ajankäyttö (sekunteina) Saattaa kestää kauemmin jos lämmitys hitaampaa." }, "ProfileCooldownSpeed": { - "displayText": "Cooldown\nSpeed", - "description": "Cooldown at this rate at the end of profile mode (degrees per second)" + "displayText": "Jäähtymis\nnopeus", + "description": "Jäähtymisnopeus profiilitilan lopussa (asteita sekunnissa)" }, "MotionSensitivity": { "displayText": "Liikkeen\nherkkyys", @@ -259,23 +259,23 @@ }, "AnimLoop": { "displayText": "Animaation\ntoistaminen", - "description": "Toista animaatiot valikossa" + "description": "Toista animaatiot valikossa." }, "Brightness": { - "displayText": "Screen\nbrightness", - "description": "Adjust the OLED screen brightness" + "displayText": "Näytön\nkirkkaus", + "description": "Säädä OLED-näytön kirkkautta." }, "ColourInversion": { - "displayText": "Invert\nscreen", - "description": "Invert the OLED screen colors" + "displayText": "Käänteiset\nvärit", + "description": "Asettaa käänteiset värit OLED-näyttöön." }, "LOGOTime": { - "displayText": "Boot logo\nduration", - "description": "Set boot logo duration (s=seconds)" + "displayText": "Käynnistyslogon\naika näytöllä", + "description": "Aseta käynnistyslogon aika näytöllä (s=sekunteja)" }, "AdvancedIdle": { "displayText": "Tiedot\nlepotilassa", - "description": "Näyttää yksityiskohtaisemmat pienemmällä fontilla tiedot lepotilassa." + "description": "Näyttää yksityiskohtaisemmat tiedot pienellä fontilla lepotilassa." }, "AdvancedSoldering": { "displayText": "Tarkempi\njuotosnäyttö", @@ -283,23 +283,23 @@ }, "BluetoothLE": { "displayText": "Bluetooth\n", - "description": "Enables BLE" + "description": "BLE käyttöön." }, "PowerLimit": { "displayText": "Tehon-\nrajoitus", "description": "Suurin sallittu teho (Watti)" }, "CalibrateCJC": { - "displayText": "Calibrate CJC\nat next boot", - "description": "At next boot tip Cold Junction Compensation will be calibrated (not required if Delta T is < 5°C)" + "displayText": "Kalibroi CJC\nensi käynnistyksessä", + "description": "Ensi käynnistyksessä kärjen Cold Junction Compensation kalibroidaan (ei tarpeellista jos Delta T on < 5°C)" }, "VoltageCalibration": { "displayText": "Kalibroi\ntulojännite?", - "description": "Tulojännitten kalibrointi (VIN) (paina pitkään poistuaksesi)" + "description": "Tulojännitteen kalibrointi (VIN) (paina pitkään poistuaksesi)" }, "PowerPulsePower": { "displayText": "Herätyspulssin\nvoimakkuus", - "description": "Herätyspulssin voimakkuus (Watti)" + "description": "Herätyspulssin voimakkuus (Watteina)" }, "PowerPulseWait": { "displayText": "Pulssin\nodotusaika", From d8b7c73b8ea092201d8a452aec75fc0f33b10555 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:38:22 +0200 Subject: [PATCH 11/24] Update Soldering.cpp allow unlock during locked warning --- source/Core/Threads/UI/logic/Soldering.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 35a7398a..a2303441 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -9,6 +9,18 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) { if (cxt->scratch_state.state1 >= 2) { // Buttons are currently locked + if (buttons == BUTTON_BOTH_LONG) { + if (cxt->scratch_state.state1 == 3) { + // Unlocking + if (warnUser(translatedString(Tr->UnlockingKeysString), buttons)) { + cxt->scratch_state.state1 = 1; + cxt->scratch_state.state7 = 0; + } + } else { + warnUser(translatedString(Tr->WarningKeysLockedString), buttons); + } + return OperatingMode::Soldering; + } if (cxt->scratch_state.state7 != 0) { // show locked until timer is up if (xTaskGetTickCount() >= cxt->scratch_state.state7) { @@ -19,16 +31,6 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) } } switch (buttons) { - case BUTTON_BOTH_LONG: - if (cxt->scratch_state.state1 == 3) { - // Unlocking - if (warnUser(translatedString(Tr->UnlockingKeysString), buttons)) { - cxt->scratch_state.state1 = 1; - } - } else { - warnUser(translatedString(Tr->WarningKeysLockedString), buttons); - } - break; case BUTTON_NONE: cxt->scratch_state.state1 = 3; break; From 9811875946654edafa0e77d3a9204fea9dc44a14 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Mon, 12 Aug 2024 07:47:54 +0300 Subject: [PATCH 12/24] Update translation_FI.json Fixed spelling mistake, tested working on TS101 --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 344f5d22..ab253b10 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -22,7 +22,7 @@ "message": "Näppäinlukko\nkäytössä." }, "UnlockingKeysString": { - "message": "Näppäimet\käytössä." + "message": "Näppäimet\nkäytössä." }, "WarningKeysLockedString": { "message": "!Näppäimet\nlukittu!!" From 42d7f8d4c5065060d90a7cc4b40adbf949b86cc8 Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Tue, 13 Aug 2024 18:18:39 +0200 Subject: [PATCH 13/24] Update Soldering.cpp use the LockingKeysString message for state 2 --- source/Core/Threads/UI/logic/Soldering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index a2303441..50508025 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -17,7 +17,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) cxt->scratch_state.state7 = 0; } } else { - warnUser(translatedString(Tr->WarningKeysLockedString), buttons); + warnUser(translatedString(Tr->LockingKeysString), buttons); } return OperatingMode::Soldering; } From 02b21a620bd810052d9f69e54a058270b730ceb9 Mon Sep 17 00:00:00 2001 From: ave Date: Wed, 21 Aug 2024 07:23:34 +0200 Subject: [PATCH 14/24] Add a sleep timeout setting for hall sensor (#1969) * Add a sleep timeout setting for hall sensor * Update Settings.h to reorder HallEffectSleepTime to the end * Update Settings.cpp to reorder HallEffectSleepTime to the end * add HallEffSleepTimeout to rest of translations * mix misaligned number in Settings.cpp * fix clang-format issue in getHallEffectSleepTimeout --- Translations/translation_BE.json | 2 ++ Translations/translation_BG.json | 2 ++ Translations/translation_CS.json | 2 ++ Translations/translation_DA.json | 2 ++ Translations/translation_DE.json | 2 ++ Translations/translation_EL.json | 2 ++ Translations/translation_EN.json | 4 ++++ Translations/translation_ES.json | 2 ++ Translations/translation_ET.json | 2 ++ Translations/translation_FI.json | 2 ++ Translations/translation_FR.json | 2 ++ Translations/translation_HR.json | 2 ++ Translations/translation_HU.json | 2 ++ Translations/translation_IT.json | 2 ++ Translations/translation_JA_JP.json | 2 ++ Translations/translation_LT.json | 2 ++ Translations/translation_NB.json | 2 ++ Translations/translation_NL.json | 2 ++ Translations/translation_NL_BE.json | 2 ++ Translations/translation_PL.json | 2 ++ Translations/translation_PT.json | 2 ++ Translations/translation_RO.json | 2 ++ Translations/translation_RU.json | 2 ++ Translations/translation_SK.json | 2 ++ Translations/translation_SL.json | 2 ++ Translations/translation_SR_CYRL.json | 2 ++ Translations/translation_SR_LATN.json | 2 ++ Translations/translation_SV.json | 2 ++ Translations/translation_TR.json | 2 ++ Translations/translation_UK.json | 2 ++ Translations/translation_VI.json | 2 ++ Translations/translation_YUE_HK.json | 2 ++ Translations/translation_ZH_CN.json | 2 ++ Translations/translation_ZH_TW.json | 2 ++ Translations/translations_definitions.json | 7 +++++++ source/Core/Inc/Settings.h | 3 ++- source/Core/Inc/Translation.h | 1 + source/Core/Src/Settings.cpp | 1 + source/Core/Src/settingsGUI.cpp | 14 ++++++++++++++ .../UI/logic/utils/OperatingModeUtilities.h | 1 + .../UI/logic/utils/getHallEffectSleepTimeout.cpp | 13 +++++++++++++ .../Threads/UI/logic/utils/shouldDeviceSleep.cpp | 2 +- 42 files changed, 110 insertions(+), 2 deletions(-) create mode 100644 source/Core/Threads/UI/logic/utils/getHallEffectSleepTimeout.cpp diff --git a/Translations/translation_BE.json b/Translations/translation_BE.json index e9c9e601..eb98c804 100644 --- a/Translations/translation_BE.json +++ b/Translations/translation_BE.json @@ -233,6 +233,8 @@ "displayText": "Эфект Хола\nадчувальнасць", "description": "Узровень адчувальнасці датчыка хола ў рэжыме сну (1=Мін. | ... | 9=Макс.)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Адзінкі\nтэмпературы", "description": "Адзінкі вымярэння тэмпературы (C=Цэльcія | F=Фарэнгейта)" diff --git a/Translations/translation_BG.json b/Translations/translation_BG.json index 6ed233c0..3599d232 100644 --- a/Translations/translation_BG.json +++ b/Translations/translation_BG.json @@ -233,6 +233,8 @@ "displayText": "Датчик\nна Хол", "description": "Чувствителност на сензора към магнитно поле (1=Слабо | ... | 9=Силно)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Единици за\nтемпературата", "description": "Единици за температурата (C=Целзии | F=Фаренхайт)" diff --git a/Translations/translation_CS.json b/Translations/translation_CS.json index b3e7ebc6..31a1a004 100644 --- a/Translations/translation_CS.json +++ b/Translations/translation_CS.json @@ -233,6 +233,8 @@ "displayText": "Citlivost\nHall. čidla", "description": "Citlivost Hallova čidla pro detekci spánku (1=nejméně citlivé | ... | 9=nejvíce citlivé)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Jednotka\nteploty", "description": "C=Celsius | F=Fahrenheit" diff --git a/Translations/translation_DA.json b/Translations/translation_DA.json index 351b1034..024ff5a0 100644 --- a/Translations/translation_DA.json +++ b/Translations/translation_DA.json @@ -233,6 +233,8 @@ "displayText": "Hall sensor\nfølsomhed", "description": "følsomhed overfor magneten (1=Mindst følsom | ... | 9=Mest følsom)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatur\nEnhed", "description": "Temperatur Enhed (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_DE.json b/Translations/translation_DE.json index b9596d36..5f1092cc 100644 --- a/Translations/translation_DE.json +++ b/Translations/translation_DE.json @@ -233,6 +233,8 @@ "displayText": "Empfindlichkeit\nder Hall-Sonde", "description": "Empfindlichkeit der Hall-Sonde um den Ruhemodus auszulösen (1=minimal | ... | 9=maximal)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatur-\neinheit", "description": "C=°Celsius | F=°Fahrenheit" diff --git a/Translations/translation_EL.json b/Translations/translation_EL.json index aca0c02e..31601626 100644 --- a/Translations/translation_EL.json +++ b/Translations/translation_EL.json @@ -233,6 +233,8 @@ "displayText": "Ευαισθ. αισθ. \nφαιν. Hall", "description": "Ευαισθησία του αισθητήρα φαινομένου Hall για εντοπισμό αδράνειας (1=λιγότερο ευαίσθητο | ... | 9=περισσότερο ευαίσθητο)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Μονάδες\nθερμοκρασίας", "description": "C=Κελσίου | F=Φαρενάιτ" diff --git a/Translations/translation_EN.json b/Translations/translation_EN.json index c6f440a6..bbf0c0a3 100644 --- a/Translations/translation_EN.json +++ b/Translations/translation_EN.json @@ -233,6 +233,10 @@ "displayText": "Hall sensor\nsensitivity", "description": "Sensitivity to magnets (1=least sensitive | ... | 9=most sensitive)" }, + "HallEffSleepTimeout": { + "displayText": "HallSensor\nSleepTime", + "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperature\nunit", "description": "C=°Celsius | F=°Fahrenheit" diff --git a/Translations/translation_ES.json b/Translations/translation_ES.json index 01972280..9ada4245 100644 --- a/Translations/translation_ES.json +++ b/Translations/translation_ES.json @@ -233,6 +233,8 @@ "displayText": "Hall Eff\nSensibilidad", "description": "Sensibilidad del sensor de efecto Hall en la detección de reposo (1=menos sensible | ... | 9=más sensible)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Unidad de\ntemperatura", "description": "Unidad de temperatura (C=entígrados | F=Fahrenheit)" diff --git a/Translations/translation_ET.json b/Translations/translation_ET.json index fc084202..ef395ac0 100644 --- a/Translations/translation_ET.json +++ b/Translations/translation_ET.json @@ -233,6 +233,8 @@ "displayText": "Halli anduri\ntundlikkus", "description": "Tundlikkus magnetite suhtes (1=vähetundlikum | ... | 9=kõige tundlikum)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatuuri\nühik", "description": "C=°Celsius | F=°Fahrenheit" diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 3381a62e..887ad3f0 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -233,6 +233,8 @@ "displayText": "Hall-\nherk.", "description": "Hall-efektianturin herkkyys lepotilan tunnistuksessa (1=vähäinen herkkyys | ... | 9=suurin herkkyys)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Lämpötilan\nyksikkö", "description": "C=celsius, F=fahrenheit" diff --git a/Translations/translation_FR.json b/Translations/translation_FR.json index 87e36489..9877807c 100644 --- a/Translations/translation_FR.json +++ b/Translations/translation_FR.json @@ -233,6 +233,8 @@ "displayText": "Sensibilité\ncapteur effet hall", "description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Unité de\ntempérature", "description": "C=Celsius | F=Fahrenheit" diff --git a/Translations/translation_HR.json b/Translations/translation_HR.json index f49ea448..ab0a7882 100644 --- a/Translations/translation_HR.json +++ b/Translations/translation_HR.json @@ -233,6 +233,8 @@ "displayText": "Osjetljivost\nHall senzora", "description": "Osjetljivost senzora magnetskog polja za detekciju spavanja (N=Najmanja | S=Srednja | V=Visoka)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Jedinica\ntemperature", "description": "Jedinica temperature (C=Celzij | F=Fahrenheit)" diff --git a/Translations/translation_HU.json b/Translations/translation_HU.json index b3456bf1..ccf6230e 100644 --- a/Translations/translation_HU.json +++ b/Translations/translation_HU.json @@ -233,6 +233,8 @@ "displayText": "Alvásérzékelő\nérzékenység", "description": "Alvásérzékelő gyorsulásmérő érzékenysége (1=legkevésbé érzékeny | ... | 9=legérzékenyebb)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Hőmérséklet\nmértékegysége", "description": "Hőmérséklet mértékegysége (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_IT.json b/Translations/translation_IT.json index edf4de7f..4e7e6194 100644 --- a/Translations/translation_IT.json +++ b/Translations/translation_IT.json @@ -233,6 +233,8 @@ "displayText": "Sensore\nHall", "description": "Regola la sensibilità del sensore ad effetto Hall per entrare in modalità riposo [1: minima; 9: massima]" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Unità di\ntemperatura", "description": "Scegli l'unità di misura per la temperatura [C: grado Celsius; F: grado Farenheit]" diff --git a/Translations/translation_JA_JP.json b/Translations/translation_JA_JP.json index cc5adf5c..836b152a 100644 --- a/Translations/translation_JA_JP.json +++ b/Translations/translation_JA_JP.json @@ -233,6 +233,8 @@ "displayText": "磁界感度", "description": "スタンバイモードに入るのに使用される磁場センサーの感度 <1=最低感度 | ... | 9=最高感度>" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "温度単位", "description": "C=摂氏 | F=華氏" diff --git a/Translations/translation_LT.json b/Translations/translation_LT.json index abf8967a..eecb2d41 100644 --- a/Translations/translation_LT.json +++ b/Translations/translation_LT.json @@ -233,6 +233,8 @@ "displayText": "Holo\njutiklis", "description": "Holo jutiklio jautrumas nustatant miegą (1=Mažiausias | ... | 9=Didžiausias)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatūros\nvienetai", "description": "Temperatūros vienetai (C=Celsijus | F=Farenheitas)" diff --git a/Translations/translation_NB.json b/Translations/translation_NB.json index 8840c64e..18578803 100644 --- a/Translations/translation_NB.json +++ b/Translations/translation_NB.json @@ -233,6 +233,8 @@ "displayText": "Hall-sensor\nfølsomhet", "description": "Sensitiviteten til Hall-effekt-sensoren for å detektere inaktivitet (1=Minst følsom | ... | 9=Mest følsom)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "TmpEnh\n", "description": "Temperaturskala (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_NL.json b/Translations/translation_NL.json index 23761d3f..f35ad386 100644 --- a/Translations/translation_NL.json +++ b/Translations/translation_NL.json @@ -233,6 +233,8 @@ "displayText": "Hall sensor\ngevoeligheid", "description": "Gevoeligheid naar de magneten (1=minst gevoelig | ... | 9=meest gevoelig)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatuur\neenheid", "description": "C=°Celsius | F=°Fahrenheit" diff --git a/Translations/translation_NL_BE.json b/Translations/translation_NL_BE.json index 554986d9..573fd2bb 100644 --- a/Translations/translation_NL_BE.json +++ b/Translations/translation_NL_BE.json @@ -233,6 +233,8 @@ "displayText": "Hall sensor\ngevoeligheid", "description": "Gevoeligheid naar de magneten (1=minst gevoelig | ... | 9=meest gevoelig)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatuur\nschaal", "description": "Temperatuurschaal (°C=Celsius | °F=Fahrenheit)" diff --git a/Translations/translation_PL.json b/Translations/translation_PL.json index b10a59c8..cdc3fb20 100644 --- a/Translations/translation_PL.json +++ b/Translations/translation_PL.json @@ -233,6 +233,8 @@ "displayText": "Czułość\ncz. Halla", "description": "Czułość czujnika Halla, używanego do przechodznia w tryb uśpienia (1: Minimalna | ... | 9: Maksymalna)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Jednostka\ntemperatury", "description": "Jednostka temperatury (C: Celciusz | F: Fahrenheit)" diff --git a/Translations/translation_PT.json b/Translations/translation_PT.json index 28c49905..92d96af2 100644 --- a/Translations/translation_PT.json +++ b/Translations/translation_PT.json @@ -233,6 +233,8 @@ "displayText": "Sensibilidade de\nmagnetismo", "description": "Sensibilidade de magnetismo (1=Menor | ... | 9=Maior)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Unidade\ntemperatura", "description": "Unidade de temperatura (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_RO.json b/Translations/translation_RO.json index 5d046979..10e7c3e3 100644 --- a/Translations/translation_RO.json +++ b/Translations/translation_RO.json @@ -233,6 +233,8 @@ "displayText": "Sensibilitate\nsenzor Hall", "description": "Sensibilitate senzor cu efect Hall pentru a detecta repausul (1=putin sensibil | ... | 9=cel mai sensibil)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Unitate de\ntemperatură", "description": "C=Celsius | F=Fahrenheit" diff --git a/Translations/translation_RU.json b/Translations/translation_RU.json index 68254f40..84ac4be2 100644 --- a/Translations/translation_RU.json +++ b/Translations/translation_RU.json @@ -233,6 +233,8 @@ "displayText": "Датчик\nХолла", "description": "Чувствительность датчика Холла к магнитному полю (1=мин. | ... | 9=макс.)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Единицы\nизмерения", "description": "Единицы измерения температуры (C=°Цельcия | F=°Фаренгейта)" diff --git a/Translations/translation_SK.json b/Translations/translation_SK.json index 09b62baf..0f77f9c1 100644 --- a/Translations/translation_SK.json +++ b/Translations/translation_SK.json @@ -233,6 +233,8 @@ "displayText": "Citliv.\nHall", "description": "Citlivosť Hallovho senzora pre detekciu spánku (1=Min | ... | 9=Max)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Jednotka\nteploty", "description": "Jednotky merania teploty (C=stupne Celzia | F=stupne Fahrenheita)" diff --git a/Translations/translation_SL.json b/Translations/translation_SL.json index 81bc8911..ede853a9 100644 --- a/Translations/translation_SL.json +++ b/Translations/translation_SL.json @@ -233,6 +233,8 @@ "displayText": "Občut.\nHall son", "description": "Občutljivost Hallove sonde za zaznavanje spanja (1=najmanjša | ... | 9=največja)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Enota za\ntemperaturo", "description": "Enota za temperaturo (C=celzij | F=fahrenheit)" diff --git a/Translations/translation_SR_CYRL.json b/Translations/translation_SR_CYRL.json index a635eeb0..e42e223b 100644 --- a/Translations/translation_SR_CYRL.json +++ b/Translations/translation_SR_CYRL.json @@ -233,6 +233,8 @@ "displayText": "Hall sensor\nsensitivity", "description": "Sensitivity to magnets (1=најмање осетљиво | ... | 9=најосетљивије)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Јединица\nтемпературе", "description": "Јединице у којима се приказује температура. (C=целзијус | F=фаренхајт)" diff --git a/Translations/translation_SR_LATN.json b/Translations/translation_SR_LATN.json index 36c660f3..b9e673e6 100644 --- a/Translations/translation_SR_LATN.json +++ b/Translations/translation_SR_LATN.json @@ -233,6 +233,8 @@ "displayText": "Hall sensor\nsensitivity", "description": "Sensitivity to magnets (1=najmanje osetljivo | ... | 9=najosetljivije)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Jedinica\ntemperature", "description": "Jedinice u kojima se prikazuje temperatura. (C=celzijus | F=farenhajt)" diff --git a/Translations/translation_SV.json b/Translations/translation_SV.json index e545dbe6..d64ee4a7 100644 --- a/Translations/translation_SV.json +++ b/Translations/translation_SV.json @@ -233,6 +233,8 @@ "displayText": "Sensor-\nkänslght", "description": "Känslighet för halleffekt-sensorn för viloläges-detektering (1=minst känslig | ... | 9=mest känslig)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Temperatur-\nenheter", "description": "Temperaturenhet (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_TR.json b/Translations/translation_TR.json index 88e1e750..ebfbe4d3 100644 --- a/Translations/translation_TR.json +++ b/Translations/translation_TR.json @@ -233,6 +233,8 @@ "displayText": "Hall Sensör\nHassasiyeti", "description": "Mıknatıslara duyarlılık (1=En az duyarlı | ... | 9=En duyarlı)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "SCKBRM\n", "description": "Sıcaklık Birimi (C=Celsius | F=Fahrenheit)" diff --git a/Translations/translation_UK.json b/Translations/translation_UK.json index 4e2bdb6c..3f447e50 100644 --- a/Translations/translation_UK.json +++ b/Translations/translation_UK.json @@ -233,6 +233,8 @@ "displayText": "Чутливість\nЕфекту Холла", "description": "Чутливість датчика ефекту Холла при виявленні сну (1=мін. чутливості | ... | 9=макс. чутливості)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Формат темпе-\nратури(C°/F°)", "description": "Одиниця виміру температури (C=Цельсій | F=Фаренгейт)" diff --git a/Translations/translation_VI.json b/Translations/translation_VI.json index 637cc900..7c9ff9fa 100644 --- a/Translations/translation_VI.json +++ b/Translations/translation_VI.json @@ -233,6 +233,8 @@ "displayText": "Hall\nđo nhay", "description": "Đo nhay cam bien Hall đe phát hien che đo ngu (1=ít nhay nhat |...| 9=nhay nhat)" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "Đon vi\nnhiet đo", "description": "C= Đo C | F= Đo F" diff --git a/Translations/translation_YUE_HK.json b/Translations/translation_YUE_HK.json index f9f5f701..b6254360 100644 --- a/Translations/translation_YUE_HK.json +++ b/Translations/translation_YUE_HK.json @@ -233,6 +233,8 @@ "displayText": "磁場敏感度", "description": "磁場感應器用嚟啓動待機模式嘅敏感度 <1=最低敏感度 | ... | 9=最高敏感度>" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "温度單位", "description": "C=攝氏 | F=華氏" diff --git a/Translations/translation_ZH_CN.json b/Translations/translation_ZH_CN.json index b2ed8bdd..f4c5e241 100644 --- a/Translations/translation_ZH_CN.json +++ b/Translations/translation_ZH_CN.json @@ -233,6 +233,8 @@ "displayText": "磁场灵敏度", "description": "霍尔效应传感器用作启动待机模式的灵敏度 <1=最低灵敏度 | ... | 9=最高灵敏度>" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "温度单位", "description": "C=摄氏 | F=华氏" diff --git a/Translations/translation_ZH_TW.json b/Translations/translation_ZH_TW.json index fe1b9947..3535d5d3 100644 --- a/Translations/translation_ZH_TW.json +++ b/Translations/translation_ZH_TW.json @@ -233,6 +233,8 @@ "displayText": "磁場敏感度", "description": "磁場感應器用作啟動待機模式的敏感度 <1=最低敏感度 | ... | 9=最高敏感度>" }, + "HallEffSleepTimeout": { "displayText": "HallSensor\nSleepTime", "description": "Interval before \"sleep mode\" starts when hall effect is above threshold" + }, "TemperatureUnit": { "displayText": "溫標", "description": "C=攝氏 | F=華氏" diff --git a/Translations/translations_definitions.json b/Translations/translations_definitions.json index 3b735c3a..5cfe4302 100644 --- a/Translations/translations_definitions.json +++ b/Translations/translations_definitions.json @@ -411,6 +411,13 @@ "include": ["HALL_SENSOR"], "description": "If the unit has a hall effect sensor (Pinecil), this adjusts how sensitive it is at detecting a magnet to put the device into sleep mode." }, + { + "id": "HallEffSleepTimeout", + "maxLen": 10, + "maxLen2": 10, + "include": ["HALL_SENSOR"], + "description": "If the unit has a hall effect sensor (Pinecil), this adjusts how long the device takes before it drops down to the sleep temperature when hall sensor is over threshold." + }, { "id": "TemperatureUnit", "maxLen": 6, diff --git a/source/Core/Inc/Settings.h b/source/Core/Inc/Settings.h index 007e47b8..44d9a1ff 100644 --- a/source/Core/Inc/Settings.h +++ b/source/Core/Inc/Settings.h @@ -73,8 +73,9 @@ enum SettingsOptions { ProfilePhase5Temp = 50, // Temperature to target for the end of phase 5 ProfilePhase5Duration = 51, // Target duration for phase 5 ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second + HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold // - SettingsOptionsLength = 53, // + SettingsOptionsLength = 54, // }; typedef enum { diff --git a/source/Core/Inc/Translation.h b/source/Core/Inc/Translation.h index 1e48b129..92185f67 100644 --- a/source/Core/Inc/Translation.h +++ b/source/Core/Inc/Translation.h @@ -84,6 +84,7 @@ enum class SettingsItemIndex : uint8_t { SleepTimeout, ShutdownTimeout, HallEffSensitivity, + HallEffSleepTimeout, TemperatureUnit, DisplayRotation, CooldownBlink, diff --git a/source/Core/Src/Settings.cpp b/source/Core/Src/Settings.cpp index 9425590f..1a4e3729 100644 --- a/source/Core/Src/Settings.cpp +++ b/source/Core/Src/Settings.cpp @@ -104,6 +104,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp { MIN_TEMP_C, MAX_TEMP_F, 5, 90}, // ProfilePhase5Temp { 10, 180, 5, 30}, // ProfilePhase5Duration { 1, 10, 1, 2}, // ProfileCooldownSpeed + { 0, 12, 1, 0}, // HallEffectSleepTime }; static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength)); diff --git a/source/Core/Src/settingsGUI.cpp b/source/Core/Src/settingsGUI.cpp index 1a9d4373..c21071a5 100644 --- a/source/Core/Src/settingsGUI.cpp +++ b/source/Core/Src/settingsGUI.cpp @@ -111,6 +111,7 @@ static void displayLogoTime(void); #ifdef HALL_SENSOR static void displayHallEffect(void); +static void displayHallEffectSleepTime(void); static bool showHallEffect(void); #endif /* HALL_SENSOR */ @@ -162,6 +163,7 @@ static void displayAdvancedMenu(void); * -Sleep Time * -Shutdown Time * Hall Sensor Sensitivity + * Hall Sensor Sleep Time * * UI * Temperature Unit @@ -346,6 +348,8 @@ const menuitem PowerSavingMenu[] = { #ifdef HALL_SENSOR /* Hall Effect Sensitivity */ {SETTINGS_DESC(SettingsItemIndex::HallEffSensitivity), nullptr, displayHallEffect, showHallEffect, SettingsOptions::HallEffectSensitivity, SettingsItemIndex::HallEffSensitivity, 7}, + /* Hall Effect Sleep Time */ + {SETTINGS_DESC(SettingsItemIndex::HallEffSleepTimeout), nullptr, displayHallEffectSleepTime, showHallEffect, SettingsOptions::HallEffectSleepTime, SettingsItemIndex::HallEffSleepTimeout, 5}, #endif /* HALL_SENSOR */ /* vvvv end of menu marker. DO NOT REMOVE vvvv */ {0, nullptr, nullptr, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::NUM_ITEMS, 0} @@ -740,6 +744,16 @@ static void displayHallEffect(void) { } } static bool showHallEffect(void) { return getHallSensorFitted(); } +static void displayHallEffectSleepTime(void) { + if (getSettingValue(SettingsOptions::HallEffectSleepTime)) { + OLED::printNumber(getSettingValue(SettingsOptions::HallEffectSleepTime) * 5, 2, FontStyle::LARGE, false); + OLED::print(LargeSymbolSeconds, FontStyle::LARGE); + } else { + // When sleep time is set to zero, we sleep for 1 second anyways. This is the default. + OLED::printNumber(1, 2, FontStyle::LARGE, false); + OLED::print(LargeSymbolSeconds, FontStyle::LARGE); + } +} #endif /* HALL_SENSOR */ static void setTempF(const enum SettingsOptions option) { diff --git a/source/Core/Threads/UI/logic/utils/OperatingModeUtilities.h b/source/Core/Threads/UI/logic/utils/OperatingModeUtilities.h index dccbec2c..1bd0835e 100644 --- a/source/Core/Threads/UI/logic/utils/OperatingModeUtilities.h +++ b/source/Core/Threads/UI/logic/utils/OperatingModeUtilities.h @@ -7,6 +7,7 @@ void GUIDelay(); // bool checkForUnderVoltage(void); // uint32_t getSleepTimeout(void); // +uint32_t getHallEffectSleepTimeout(void); // bool shouldBeSleeping(); // bool shouldShutdown(void); // void printVoltage(void); // diff --git a/source/Core/Threads/UI/logic/utils/getHallEffectSleepTimeout.cpp b/source/Core/Threads/UI/logic/utils/getHallEffectSleepTimeout.cpp new file mode 100644 index 00000000..22028205 --- /dev/null +++ b/source/Core/Threads/UI/logic/utils/getHallEffectSleepTimeout.cpp @@ -0,0 +1,13 @@ +#include "OperatingModeUtilities.h" + +#ifndef NO_SLEEP_MODE +#ifdef HALL_SENSOR +uint32_t getHallEffectSleepTimeout(void) { + if (getSettingValue(SettingsOptions::HallEffectSensitivity) && getSettingValue(SettingsOptions::HallEffectSleepTime)) { + uint32_t sleepThres = getSettingValue(SettingsOptions::HallEffectSleepTime) * 5 * TICKS_SECOND; + return sleepThres; + } + return TICKS_SECOND; +} +#endif +#endif diff --git a/source/Core/Threads/UI/logic/utils/shouldDeviceSleep.cpp b/source/Core/Threads/UI/logic/utils/shouldDeviceSleep.cpp index 9e27f2eb..6b50800e 100644 --- a/source/Core/Threads/UI/logic/utils/shouldDeviceSleep.cpp +++ b/source/Core/Threads/UI/logic/utils/shouldDeviceSleep.cpp @@ -32,7 +32,7 @@ bool shouldBeSleeping() { if (lastHallEffectSleepStart == 0) { lastHallEffectSleepStart = xTaskGetTickCount(); } - if ((xTaskGetTickCount() - lastHallEffectSleepStart) > TICKS_SECOND) { + if ((xTaskGetTickCount() - lastHallEffectSleepStart) > getHallEffectSleepTimeout()) { return true; } } else { From 6305093b642845d410e1ea3cec3cba4ad134d449 Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Thu, 22 Aug 2024 01:16:03 +0300 Subject: [PATCH 15/24] Add stub implementations of unused syscalls explicitly (#1966) --- source/Core/Src/syscalls.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/Core/Src/syscalls.c b/source/Core/Src/syscalls.c index b1cefd18..8d8557ca 100644 --- a/source/Core/Src/syscalls.c +++ b/source/Core/Src/syscalls.c @@ -11,4 +11,14 @@ /* Functions */ void initialise_monitor_handles() {} +/* Syscalls (stub implementations to avoid compile warnings and possibe future problems) */ int _getpid(void) { return 1; } + +#if defined(MODEL_Pinecil) || defined(MODEL_Pinecilv2) +// do nothing here because some stubs and real implementations added for Pinecils already +#else +off_t _lseek(int fd, off_t ptr, int dir) { return -1; } +ssize_t _read(int fd, void *ptr, size_t len) { return -1; } +ssize_t _write(int fd, const void *ptr, size_t len) { return -1; } +int _close(int fd) { return -1; } +#endif From 11beddf5e6e235e3ea6b6cd7767edd46d17b9ef7 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" <5425387+Ralim@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:11:51 +1000 Subject: [PATCH 16/24] TS1010 Logo rework for Miniware DFU (#1967) * Move LOGO and settings to suit Miniware DFU * Update configuration.h * Adjust TS101 logo to 99K offset * Add logo note/instructions for TS101 --- Documentation/Logo.md | 24 +++++++++++++++++++++++- source/Core/BSP/Miniware/configuration.h | 9 +++++++-- source/Makefile | 3 ++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Documentation/Logo.md b/Documentation/Logo.md index 9734fda3..a4947091 100644 --- a/Documentation/Logo.md +++ b/Documentation/Logo.md @@ -38,7 +38,7 @@ The model should be replaced by one of the following options: - `miniware` for older Miniware Irons -> TS100, TS80, TS80P - `pinecilv1` for the Pinecil V1 - `pinecilv2` for the Pinecil V2 -- `ts101` for the Miniware TS101 [^1] +- `ts101` for the Miniware TS101 [^1] [^2] - `s60` for the Squire S60 [^1] - `mhp30` for the Miniware MHP30 @@ -50,6 +50,28 @@ After processing its expected to have a `.hex` and `.dfu` file created to be use Note: make sure your image file is in the same folder as script files (img2logo.py, output_dfu.py, output_hex.py). [^1] Note that these devices have larger resolution screens that the logo system supports right now. Fixes are coming for this soon, roughly scheduled for 2.23. +[^2] The TS101 requires extra steps, see below. + +### TS101 Quirks + +When Miniware designed the TS101 they cut cost by using an STM32 clone with some odd quirks. They also re-wrote their USB bootloader, which has introduced new bugs for us to deal with. +Their bootloader appears to have kept the existing limit of not being able to flash small hex files, but they no longer fall for the older "just repeat the content" trick and instead reject the file. +Additionally, while the MCU in use has 128K of flash, their bootloader (at least for me) fails to write to anything above 99K. It _looks_ like a watchdog reset or hard crash. Unsure. + +This has flow on effects, where the settings can still be located in the upper ~28K of flash, but it cant be used for anything we flash over USB. +Of that 100K we can use, they waste 32K of it for their bootloader (Old bootloaders were 16K). +This means the main "app" of IronOS is limited to around 67K (100K-32K for bootloader, -1K for logo). + +For this device the Logo is not located at the end of flash but instead at the last writable page (99K). + +Additionally, as we need to do a large write, to avoid having to waste more flash space; the logo is merged with the normal firmware. This means that the firmware and logo are flashed together once. +Future updates can be done without merging as it will leave the logo data there as normal firmware doesnt touch that area of flash. + +To do this, download the latest version of IronOS and merge it with the logo using the `--merge` command line argument. + +To create the logo file for a TS101 the full command looks like `python3 img2logo.py -m ts101 --merge `. + +For this reason, there are no TS101 logo's generated by the IronOS-Meta repo. ## Flashing the Logo diff --git a/source/Core/BSP/Miniware/configuration.h b/source/Core/BSP/Miniware/configuration.h index f22ada8c..c1e9c351 100644 --- a/source/Core/BSP/Miniware/configuration.h +++ b/source/Core/BSP/Miniware/configuration.h @@ -194,7 +194,7 @@ #define POWER_LIMIT_STEPS 5 #define OP_AMP_GAIN_STAGE OP_AMP_GAIN_STAGE_TS100 #define TEMP_uV_LOOKUP_HAKKO -#define ACCEL_LIS_CLONE 1 +#define ACCEL_LIS_CLONE 1 #define HARDWARE_MAX_WATTAGE_X10 1000 #define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second #define TIP_RESISTANCE 75 // x10 ohms, 7.5 typical for ts100 tips @@ -272,7 +272,12 @@ #endif /* TS80P */ #ifdef MODEL_TS101 -#define FLASH_LOGOADDR (0x08000000 + (126 * 1024)) +// For whatever reason, Miniware decided to not build a reliable DFU bootloader +// It can't appear to flash to some of the upper pages of flash, +// I'm slightly suspect a watchdog or something runs out +// as device resets before file finishes copying +// So logo has to be located on page 99 or else it cant be flashed on stock bootloader +#define FLASH_LOGOADDR (0x08000000 + (99 * 1024)) #define SETTINGS_START_PAGE (0x08000000 + (127 * 1024)) #else #define FLASH_LOGOADDR (0x08000000 + (62 * 1024)) diff --git a/source/Makefile b/source/Makefile index 01cd929f..0754d7c6 100644 --- a/source/Makefile +++ b/source/Makefile @@ -84,7 +84,8 @@ DEVICE_BSP_DIR=./Core/BSP/Miniware LDSCRIPT=./Core/BSP/Miniware/stm32f103.ld ifeq ($(model),$(filter $(model),TS101)) -flash_size=126k +# 128K, but logo must be at 99K so their broken ass DFU can flash it +flash_size=98k bootldr_size=0x8000 DEVICE_DFU_ADDRESS=0x08008000 else From e0d15d78d505342dff0f61047277d671bb9d7955 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:25:39 +0300 Subject: [PATCH 17/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index ab253b10..e1f80e80 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -290,7 +290,7 @@ "description": "Suurin sallittu teho (Watti)" }, "CalibrateCJC": { - "displayText": "Kalibroi CJC\nensi käynnistyksessä", + "displayText": "Kalibroi CJC\nensi käynnist", "description": "Ensi käynnistyksessä kärjen Cold Junction Compensation kalibroidaan (ei tarpeellista jos Delta T on < 5°C)" }, "VoltageCalibration": { From 518e836d6d2740eabee037482216877552873442 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:26:51 +0300 Subject: [PATCH 18/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index e1f80e80..5464a03a 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -34,7 +34,7 @@ "message": "!Kärki\noikosulussa!" }, "SettingsCalibrationWarning": { - "message": "Varmista laitteen ja kärjen huoneenlämpöisyys ennen uudelleenkäynnistystä.!" + "message": "Varmista laitteen ja kärjen huoneenlämpöisyys ennen uudelleenkäynnistystä!" }, "CJCCalibrating": { "message": "Kalibroidaan\n" From 2b51ce43d37d86ad169ede01f54381541364a25b Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:27:25 +0300 Subject: [PATCH 19/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 5464a03a..8b5726f3 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -113,7 +113,7 @@ "displayText": "USB-PD\nvakaa-tila" }, "USBPDModeSafe": { - "displayText": "USB-PD\nturva-tila" + "displayText": "USB-PD\nturva-ti" } }, "menuOptions": { From 7fd0f47a768612ca94883db9c06e9324adf42986 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:27:33 +0300 Subject: [PATCH 20/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 8b5726f3..8d760c14 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -25,7 +25,7 @@ "message": "Näppäimet\nkäytössä." }, "WarningKeysLockedString": { - "message": "!Näppäimet\nlukittu!!" + "message": "!Näppäimet\nlukittu!" }, "WarningThermalRunaway": { "message": "!Lämmönsäätelyn\nhäiriö!" From d34a05f0438cedb693d5e99b233299dfeb74eba7 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:27:40 +0300 Subject: [PATCH 21/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 8d760c14..06adca0c 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -270,7 +270,7 @@ "description": "Asettaa käänteiset värit OLED-näyttöön." }, "LOGOTime": { - "displayText": "Käynnistyslogon\naika näytöllä", + "displayText": "Käynnistysl\naika näytöllä", "description": "Aseta käynnistyslogon aika näytöllä (s=sekunteja)" }, "AdvancedIdle": { From d9f25e2db07a211c7e032f4ded45a9b52da7ded8 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:27:46 +0300 Subject: [PATCH 22/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 06adca0c..6ab1db11 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -130,7 +130,7 @@ "description": "Ensisijainen maksimi QC jännite." }, "PDNegTimeout": { - "displayText": "PD\naikakatkaisu", + "displayText": "PD\naikakatkais", "description": "PD neuvottelun aikakatkaisu 100ms askelin joitakin QC-latureita varten." }, "USBPDMode": { From 7fce6c062aaba6c380befc27d0e7bb94414ef9f3 Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:27:57 +0300 Subject: [PATCH 23/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 6ab1db11..03c3965b 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -107,7 +107,7 @@ }, "menuValues": { "USBPDModeDefault": { - "displayText": "USB-PD\noletus-tila" + "displayText": "USB-PD\noletus-t" }, "USBPDModeNoDynamic": { "displayText": "USB-PD\nvakaa-tila" From d3edb58b484598b38fe269ac4634d68c62609acb Mon Sep 17 00:00:00 2001 From: juhotauriainen <39827674+juhotauriainen@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:28:04 +0300 Subject: [PATCH 24/24] Update Translations/translation_FI.json Co-authored-by: discip <53649486+discip@users.noreply.github.com> --- Translations/translation_FI.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 03c3965b..b6ae9873 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -110,7 +110,7 @@ "displayText": "USB-PD\noletus-t" }, "USBPDModeNoDynamic": { - "displayText": "USB-PD\nvakaa-tila" + "displayText": "USB-PD\nvakaa-ti" }, "USBPDModeSafe": { "displayText": "USB-PD\nturva-ti"