chore: add 3-minute sleep option (#1948)

This commit is contained in:
WuTofu
2026-05-18 00:17:24 +03:00
committed by GitHub
parent 510ee10153
commit 061c7688a4
25 changed files with 27 additions and 1 deletions
+2
View File
@@ -305,6 +305,8 @@ unsigned long CrossPointSettings::getSleepTimeoutMs() const {
switch (sleepTimeout) {
case SLEEP_1_MIN:
return 1UL * 60 * 1000;
case SLEEP_3_MIN:
return 3UL * 60 * 1000;
case SLEEP_5_MIN:
return 5UL * 60 * 1000;
case SLEEP_10_MIN:
+1
View File
@@ -119,6 +119,7 @@ class CrossPointSettings {
SLEEP_10_MIN = 2,
SLEEP_15_MIN = 3,
SLEEP_30_MIN = 4,
SLEEP_3_MIN = 5,
SLEEP_TIMEOUT_COUNT
};
+2 -1
View File
@@ -172,7 +172,8 @@ inline std::vector<SettingInfo> getSettingsList(const SdCardFontRegistry* regist
// --- System ---
SettingInfo::Enum(StrId::STR_TIME_TO_SLEEP, &CrossPointSettings::sleepTimeout,
{StrId::STR_MIN_1, StrId::STR_MIN_5, StrId::STR_MIN_10, StrId::STR_MIN_15, StrId::STR_MIN_30},
{StrId::STR_MIN_1, StrId::STR_MIN_3, StrId::STR_MIN_5, StrId::STR_MIN_10, StrId::STR_MIN_15,
StrId::STR_MIN_30},
"sleepTimeout", StrId::STR_CAT_SYSTEM),
SettingInfo::Toggle(StrId::STR_SHOW_HIDDEN_FILES, &CrossPointSettings::showHiddenFiles, "showHiddenFiles",
StrId::STR_CAT_SYSTEM),