From 7c4c3da37c7acd206daf4e5a99fdfafa39a2954d Mon Sep 17 00:00:00 2001 From: Devydd <68201914+devydd@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:14:50 +0100 Subject: [PATCH 1/5] Increase maximum Power Pulse power to 9.9W One of my power-banks (UTRAI Jstar One) required 7.0W pulse to stay awake. Extending this limit to 100 gives more flexibility in setting up stronger but less frequent pulses. --- source/configuration.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/configuration.h b/source/configuration.h index ad3280ea..5db8e736 100644 --- a/source/configuration.h +++ b/source/configuration.h @@ -70,6 +70,7 @@ /* Power pulse for keeping power banks awake*/ #define POWER_PULSE_INCREMENT 1 #define POWER_PULSE_MAX 50 // x10 max watts +#define POWER_PULSE_MAX 100 // x10 max watts #ifdef MODEL_TS100 #define POWER_PULSE_DEFAULT 0 #else From c13991cd252458e4453ac02395f3923b791a2184 Mon Sep 17 00:00:00 2001 From: Devydd <68201914+devydd@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:15:05 +0100 Subject: [PATCH 2/5] Add user-adjustable "time between Power Pulses" and "Power Pulse duration" --- Translations/translation_EN.json | 14 +++++++++ Translations/translations_def.js | 10 +++++++ source/Core/Inc/Settings.h | 4 ++- source/Core/Inc/Translation.h | 4 +-- source/Core/Src/Settings.cpp | 4 ++- source/Core/Src/gui.cpp | 47 +++++++++++++++++++++++++++++++ source/Core/Threads/PIDThread.cpp | 17 +++++------ source/configuration.h | 10 +++++-- 8 files changed, 95 insertions(+), 15 deletions(-) diff --git a/Translations/translation_EN.json b/Translations/translation_EN.json index 7606eae8..ffc6a66d 100644 --- a/Translations/translation_EN.json +++ b/Translations/translation_EN.json @@ -305,6 +305,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translations_def.js b/Translations/translations_def.js index ded42f08..a8d14089 100644 --- a/Translations/translations_def.js +++ b/Translations/translations_def.js @@ -376,6 +376,16 @@ var def = "id": "AnimSpeed", "maxLen": 6, "maxLen2": 13 + }, + { + "id": "PowerPulseWait", + "maxLen": 6, + "maxLen2": 13 + }, + { + "id": "PowerPulseDuration", + "maxLen": 6, + "maxLen2": 13 } ] } diff --git a/source/Core/Inc/Settings.h b/source/Core/Inc/Settings.h index 6c74720d..1a854366 100644 --- a/source/Core/Inc/Settings.h +++ b/source/Core/Inc/Settings.h @@ -10,7 +10,7 @@ #ifndef SETTINGS_H_ #define SETTINGS_H_ #include -#define SETTINGSVERSION (0x28) +#define SETTINGSVERSION (0x29) /*Change this if you change the struct below to prevent people getting \ out of sync*/ @@ -43,6 +43,8 @@ typedef struct { uint8_t descriptionScrollSpeed : 1; // Description scroll speed uint8_t lockingMode : 2; // Store the locking mode uint8_t KeepAwakePulse; // Keep Awake pulse power in 0.1 watts (10 = 1Watt) + uint8_t KeepAwakePulseWait; // Time between Keep Awake pulses in 2500 ms = 2.5 s increments + uint8_t KeepAwakePulseDuration; // Duration of the Keep Awake pusle in 250 ms increments uint16_t voltageDiv; // Voltage divisor factor uint16_t BoostTemp; // Boost mode set point for the iron diff --git a/source/Core/Inc/Translation.h b/source/Core/Inc/Translation.h index b1b1b2c4..38c24f73 100644 --- a/source/Core/Inc/Translation.h +++ b/source/Core/Inc/Translation.h @@ -12,8 +12,8 @@ extern const uint8_t USER_FONT_12[]; extern const uint8_t USER_FONT_6x8[]; extern const bool HasFahrenheit; -extern const char *SettingsShortNames[31][2]; -extern const char *SettingsDescriptions[31]; +extern const char *SettingsShortNames[33][2]; +extern const char *SettingsDescriptions[33]; extern const char *SettingsMenuEntries[5]; extern const char *SettingsCalibrationDone; diff --git a/source/Core/Src/Settings.cpp b/source/Core/Src/Settings.cpp index 81d59ec5..c82a1eb6 100644 --- a/source/Core/Src/Settings.cpp +++ b/source/Core/Src/Settings.cpp @@ -77,7 +77,9 @@ void resetSettings() { systemSettings.ReverseButtonTempChangeEnabled = REVERSE_BUTTON_TEMP_CHANGE; // systemSettings.TempChangeShortStep = TEMP_CHANGE_SHORT_STEP; // systemSettings.TempChangeLongStep = TEMP_CHANGE_LONG_STEP; // - systemSettings.KeepAwakePulse = POWER_PULSE_DEFAULT; + systemSettings.KeepAwakePulse = POWER_PULSE_DEFAULT; // Power of the power pulse + systemSettings.KeepAwakePulseWait = POWER_PULSE_WAIT_DEFAULT; // Time between Keep Awake pulses in 2.5 second increments + systemSettings.KeepAwakePulseDuration = POWER_PULSE_DURATION_DEFAULT; // Duration of the Keep Awake pusle in 250ms increments systemSettings.hallEffectSensitivity = 1; systemSettings.accelMissingWarningCounter = 0; systemSettings.pdMissingWarningCounter = 0; diff --git a/source/Core/Src/gui.cpp b/source/Core/Src/gui.cpp index cba85ccd..95dcc580 100644 --- a/source/Core/Src/gui.cpp +++ b/source/Core/Src/gui.cpp @@ -74,6 +74,10 @@ static void settings_displayAnimationSpeed(void); static bool settings_setAnimationSpeed(void); static void settings_displayAnimationLoop(void); static bool settings_setAnimationLoop(void); +static void settings_displayPowerPulseWait(void); +static bool settings_setPowerPulseWait(void); +static void settings_displayPowerPulseDuration(void); +static bool settings_setPowerPulseDuration(void); #ifdef HALL_SENSOR static void settings_displayHallEffect(void); static bool settings_setHallEffect(void); @@ -221,6 +225,8 @@ const menuitem advancedMenu[] = { * Power Pulse * Animation Loop * Animation Speed + * Power Pulse Wait + * Power Pulse Duration */ {(const char *)SettingsDescriptions[20], settings_setPowerLimit, settings_displayPowerLimit}, /*Power limit*/ {(const char *)SettingsDescriptions[6], settings_setAdvancedIDLEScreens, settings_displayAdvancedIDLEScreens}, /* Advanced idle screen*/ @@ -229,6 +235,8 @@ const menuitem advancedMenu[] = { {(const char *)SettingsDescriptions[11], settings_setCalibrate, settings_displayCalibrate}, /*Calibrate tip*/ {(const char *)SettingsDescriptions[13], settings_setCalibrateVIN, settings_displayCalibrateVIN}, /*Voltage input cal*/ {(const char *)SettingsDescriptions[24], settings_setPowerPulse, settings_displayPowerPulse}, /*Power Pulse adjustment */ + {(const char *)SettingsDescriptions[31], settings_setPowerPulseWait, settings_displayPowerPulseWait}, /*Power Pulse Wait adjustment*/ + {(const char *)SettingsDescriptions[32], settings_setPowerPulseDuration, settings_displayPowerPulseDuration}, /*Power Pulse Duration adjustment*/ //{ (const char *) SettingsDescriptions[25], settings_setTipGain, settings_displayTipGain }, /*TipGain*/ {NULL, NULL, NULL} // end of menu marker. DO NOT REMOVE }; @@ -936,6 +944,45 @@ static void settings_displayAnimationSpeed(void) { break; } } + +static bool settings_setPowerPulseWait(void) { + // Constrain to range 1 to POWER_PULSE_WAIT_MAX inclusive + auto &wait = systemSettings.KeepAwakePulseWait; + if (++wait > POWER_PULSE_WAIT_MAX) { + wait = 1; + } + + return wait == POWER_PULSE_WAIT_MAX; +} + +static void settings_displayPowerPulseWait(void) { + printShortDescription(31, 7); + if (systemSettings.KeepAwakePulse) { + OLED::printNumber(systemSettings.KeepAwakePulseWait, 1); + } else { + OLED::print(SymbolMinus); + } +} + +static bool settings_setPowerPulseDuration(void) { + // Constrain to range 1 to POWER_PULSE_DURATION_MAX inclusive + auto &duration = systemSettings.KeepAwakePulseDuration; + if (++duration > POWER_PULSE_DURATION_MAX) { + duration = 1; + } + + return duration == POWER_PULSE_DURATION_MAX; +} + +static void settings_displayPowerPulseDuration(void) { + printShortDescription(32, 7); + if (systemSettings.KeepAwakePulse) { + OLED::printNumber(systemSettings.KeepAwakePulseDuration, 1); + } else { + OLED::print(SymbolMinus); + } +} + #ifdef HALL_SENSOR static void settings_displayHallEffect(void) { printShortDescription(26, 7); diff --git a/source/Core/Threads/PIDThread.cpp b/source/Core/Threads/PIDThread.cpp index f16b9b2b..66302f99 100644 --- a/source/Core/Threads/PIDThread.cpp +++ b/source/Core/Threads/PIDThread.cpp @@ -14,10 +14,10 @@ #include "main.hpp" #include "power.hpp" #include "task.h" -static TickType_t powerPulseRate = 10 * TICKS_SECOND; -static TickType_t powerPulseDuration = 3 * TICKS_100MS; -TaskHandle_t pidTaskNotification = NULL; -uint32_t currentTempTargetDegC = 0; // Current temperature target in C +static TickType_t powerPulseWaitUnit = 25 * TICKS_100MS; // 2.5 s +static TickType_t powerPulseDurationUnit = (5 * TICKS_100MS) / 2; // 250 ms +TaskHandle_t pidTaskNotification = NULL; +uint32_t currentTempTargetDegC = 0; // Current temperature target in C /* StartPIDTask function */ void startPIDTask(void const *argument __unused) { @@ -92,10 +92,11 @@ void startPIDTask(void const *argument __unused) { } // If the user turns on the option of using an occasional pulse to keep the power bank on if (systemSettings.KeepAwakePulse) { - - if (xTaskGetTickCount() - lastPowerPulseStart > powerPulseRate) { - lastPowerPulseStart = xTaskGetTickCount(); - lastPowerPulseEnd = lastPowerPulseStart + powerPulseDuration; + const TickType_t powerPulseWait = powerPulseWaitUnit * systemSettings.KeepAwakePulseWait; + if (xTaskGetTickCount() - lastPowerPulseStart > powerPulseWait) { + const TickType_t powerPulseDuration = powerPulseDurationUnit * systemSettings.KeepAwakePulseDuration; + lastPowerPulseStart = xTaskGetTickCount(); + lastPowerPulseEnd = lastPowerPulseStart + powerPulseDuration; } // If current PID is less than the pulse level, check if we want to constrain to the pulse as the floor diff --git a/source/configuration.h b/source/configuration.h index 5db8e736..43d76ce1 100644 --- a/source/configuration.h +++ b/source/configuration.h @@ -68,14 +68,18 @@ #define TEMP_CHANGE_LONG_STEP_MAX 90 // Temp change long step MAX value /* Power pulse for keeping power banks awake*/ -#define POWER_PULSE_INCREMENT 1 -#define POWER_PULSE_MAX 50 // x10 max watts -#define POWER_PULSE_MAX 100 // x10 max watts +#define POWER_PULSE_INCREMENT 1 +#define POWER_PULSE_MAX 100 // x10 max watts +#define POWER_PULSE_WAIT_MAX 9 // 9*2.5s = 22.5 seconds +#define POWER_PULSE_DURATION_MAX 9 // 9*250ms = 2.25 seconds + #ifdef MODEL_TS100 #define POWER_PULSE_DEFAULT 0 #else #define POWER_PULSE_DEFAULT 5 #endif +#define POWER_PULSE_WAIT_DEFAULT 4; // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s +#define POWER_PULSE_DURATION_DEFAULT 1; // Default duration of the power pulse: 1*250 = 250 ms /** * OLED Orientation Sensitivity on Automatic mode! From c871c417de30a578bd50a8556fa09b247c53ff04 Mon Sep 17 00:00:00 2001 From: Devydd <68201914+devydd@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:15:10 +0100 Subject: [PATCH 3/5] Add Polish translations for extended Power Pulse configuration --- Translations/translation_PL.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Translations/translation_PL.json b/Translations/translation_PL.json index 4c84fb8b..6aab746e 100644 --- a/Translations/translation_PL.json +++ b/Translations/translation_PL.json @@ -305,6 +305,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Czas między", + "imp. mocy" + ], + "desc": "Czas między kolejnymi impulsami mocy zapobiegającymi usypianiu powerbanku (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Długość", + "impulsu mocy" + ], + "desc": "Długość impulsu mocy zapobiegającego usypianiu powerbanku (x 250ms)" } } } From 9352646762c12d98364f6bd2f736fafc99bec490 Mon Sep 17 00:00:00 2001 From: Devydd <68201914+devydd@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:15:13 +0100 Subject: [PATCH 4/5] Add English placeholder translations for extended Power Pulse configuration for other locales --- Translations/translation_BG.json | 14 ++++++++++++++ Translations/translation_CS.json | 14 ++++++++++++++ Translations/translation_DA.json | 14 ++++++++++++++ Translations/translation_DE.json | 14 ++++++++++++++ Translations/translation_ES.json | 14 ++++++++++++++ Translations/translation_FI.json | 14 ++++++++++++++ Translations/translation_FR.json | 14 ++++++++++++++ Translations/translation_HR.json | 14 ++++++++++++++ Translations/translation_HU.json | 14 ++++++++++++++ Translations/translation_IT.json | 14 ++++++++++++++ Translations/translation_LT.json | 14 ++++++++++++++ Translations/translation_NL.json | 14 ++++++++++++++ Translations/translation_NL_BE.json | 14 ++++++++++++++ Translations/translation_NO.json | 14 ++++++++++++++ Translations/translation_PT.json | 14 ++++++++++++++ Translations/translation_RU.json | 14 ++++++++++++++ Translations/translation_SK.json | 14 ++++++++++++++ Translations/translation_SL.json | 14 ++++++++++++++ Translations/translation_SR_CYRL.json | 14 ++++++++++++++ Translations/translation_SR_LATN.json | 14 ++++++++++++++ Translations/translation_SV.json | 14 ++++++++++++++ Translations/translation_TR.json | 14 ++++++++++++++ Translations/translation_UK.json | 14 ++++++++++++++ Translations/translation_YUE_HK.json | 14 ++++++++++++++ Translations/translation_ZH_TW.json | 14 ++++++++++++++ 25 files changed, 350 insertions(+) diff --git a/Translations/translation_BG.json b/Translations/translation_BG.json index bbe9d851..1dc521dc 100644 --- a/Translations/translation_BG.json +++ b/Translations/translation_BG.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_CS.json b/Translations/translation_CS.json index bb04a87c..5e160449 100644 --- a/Translations/translation_CS.json +++ b/Translations/translation_CS.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_DA.json b/Translations/translation_DA.json index 5dd4b385..1563f273 100644 --- a/Translations/translation_DA.json +++ b/Translations/translation_DA.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_DE.json b/Translations/translation_DE.json index 19ea9bee..8fe5e00b 100644 --- a/Translations/translation_DE.json +++ b/Translations/translation_DE.json @@ -305,6 +305,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_ES.json b/Translations/translation_ES.json index 4bf62987..ecbf5431 100644 --- a/Translations/translation_ES.json +++ b/Translations/translation_ES.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_FI.json b/Translations/translation_FI.json index 76e75898..b90875aa 100644 --- a/Translations/translation_FI.json +++ b/Translations/translation_FI.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_FR.json b/Translations/translation_FR.json index d6b2752e..ce46622d 100644 --- a/Translations/translation_FR.json +++ b/Translations/translation_FR.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_HR.json b/Translations/translation_HR.json index 0dcb0ac4..1a70bf12 100644 --- a/Translations/translation_HR.json +++ b/Translations/translation_HR.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_HU.json b/Translations/translation_HU.json index 87c17e26..a933d3e2 100644 --- a/Translations/translation_HU.json +++ b/Translations/translation_HU.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_IT.json b/Translations/translation_IT.json index 046f43b8..2ab46e66 100644 --- a/Translations/translation_IT.json +++ b/Translations/translation_IT.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_LT.json b/Translations/translation_LT.json index 6ef898b5..514444cf 100644 --- a/Translations/translation_LT.json +++ b/Translations/translation_LT.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_NL.json b/Translations/translation_NL.json index 2f12c4b0..e5f836a1 100644 --- a/Translations/translation_NL.json +++ b/Translations/translation_NL.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_NL_BE.json b/Translations/translation_NL_BE.json index 4f8dd944..f45b6c00 100644 --- a/Translations/translation_NL_BE.json +++ b/Translations/translation_NL_BE.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_NO.json b/Translations/translation_NO.json index 5958f1e3..41a6d404 100644 --- a/Translations/translation_NO.json +++ b/Translations/translation_NO.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_PT.json b/Translations/translation_PT.json index d837aec7..6f1ca294 100644 --- a/Translations/translation_PT.json +++ b/Translations/translation_PT.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_RU.json b/Translations/translation_RU.json index aa3af9d5..0ca07e94 100644 --- a/Translations/translation_RU.json +++ b/Translations/translation_RU.json @@ -304,6 +304,20 @@ "анимации" ], "desc": "Скорость анимации иконок в главном меню <Милисекунды> <О=Отключено, Н=Низкий, С=Средний, В=Высокий>" + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_SK.json b/Translations/translation_SK.json index 9dd8732e..d55e63a9 100644 --- a/Translations/translation_SK.json +++ b/Translations/translation_SK.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_SL.json b/Translations/translation_SL.json index 670868cb..6f131b49 100644 --- a/Translations/translation_SL.json +++ b/Translations/translation_SL.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_SR_CYRL.json b/Translations/translation_SR_CYRL.json index 650a94c0..bbfacd10 100644 --- a/Translations/translation_SR_CYRL.json +++ b/Translations/translation_SR_CYRL.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_SR_LATN.json b/Translations/translation_SR_LATN.json index 012c6093..3aa21b17 100644 --- a/Translations/translation_SR_LATN.json +++ b/Translations/translation_SR_LATN.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_SV.json b/Translations/translation_SV.json index 1a1d472a..b2407a28 100644 --- a/Translations/translation_SV.json +++ b/Translations/translation_SV.json @@ -304,6 +304,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_TR.json b/Translations/translation_TR.json index e5b63c10..3fa016c8 100644 --- a/Translations/translation_TR.json +++ b/Translations/translation_TR.json @@ -322,6 +322,20 @@ "speed" ], "desc": "Speed of icon animations in menu " + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_UK.json b/Translations/translation_UK.json index bc816a27..08c00ffb 100644 --- a/Translations/translation_UK.json +++ b/Translations/translation_UK.json @@ -304,6 +304,20 @@ "анімації" ], "desc": "Швидкість анімації іконок у головному меню <Мілісекунди> <В=Вимк, Н=Низькa, С=Середня, М=Макс>" + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_YUE_HK.json b/Translations/translation_YUE_HK.json index e802d968..4bcd50c4 100644 --- a/Translations/translation_YUE_HK.json +++ b/Translations/translation_YUE_HK.json @@ -305,6 +305,20 @@ "動畫速度" ], "desc": "功能表圖示動畫嘅速度 <關=不顯示動畫 | 慢=慢速 | 中=中速 | 快=快速>" + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } diff --git a/Translations/translation_ZH_TW.json b/Translations/translation_ZH_TW.json index 9fdcb755..1c0d5f6d 100644 --- a/Translations/translation_ZH_TW.json +++ b/Translations/translation_ZH_TW.json @@ -305,6 +305,20 @@ "動畫速度" ], "desc": "功能表圖示動畫的速度 <關=不顯示動畫 | 慢=慢速 | 中=中速 | 快=快速>" + }, + "PowerPulseWait": { + "text2": [ + "Power pulse", + "wait time" + ], + "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + }, + "PowerPulseDuration": { + "text2": [ + "Power pulse", + "duration" + ], + "desc": "Keep-awake-pulse duration (x 250ms)" } } } From f192259f98a8f237e96ab883bc13adc3f0aff465 Mon Sep 17 00:00:00 2001 From: Devydd <68201914+devydd@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:15:20 +0100 Subject: [PATCH 5/5] Change not-tranlated Engilsh strings in YUE_HK and ZH_TW to fit in symbol array See: https://github.com/Ralim/IronOS/pull/876#issuecomment-799465859 --- Translations/translation_YUE_HK.json | 4 ++-- Translations/translation_ZH_TW.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Translations/translation_YUE_HK.json b/Translations/translation_YUE_HK.json index 4bcd50c4..fc6a45d3 100644 --- a/Translations/translation_YUE_HK.json +++ b/Translations/translation_YUE_HK.json @@ -311,14 +311,14 @@ "Power pulse", "wait time" ], - "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + "desc": "Time to wait beFore triggering everY power pulse " }, "PowerPulseDuration": { "text2": [ "Power pulse", "duration" ], - "desc": "Keep-awake-pulse duration (x 250ms)" + "desc": "power pulse duration " } } } diff --git a/Translations/translation_ZH_TW.json b/Translations/translation_ZH_TW.json index 1c0d5f6d..707a97c0 100644 --- a/Translations/translation_ZH_TW.json +++ b/Translations/translation_ZH_TW.json @@ -311,14 +311,14 @@ "Power pulse", "wait time" ], - "desc": "Time to wait before triggering every keep-awake pulse (x 2.5s)" + "desc": "Time to wait beFore triggering every keep-awake pulse " }, "PowerPulseDuration": { "text2": [ "Power pulse", "duration" ], - "desc": "Keep-awake-pulse duration (x 250ms)" + "desc": "Keep-awake-pulse duration " } } }