[sleeplog] Change default app timeout behavior

master
storm64 2022-05-20 18:22:11 +02:00
parent 34ae1cdcf1
commit ae8ce7f1fd
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@
lightTh: 200, // threshold for light sleep
// app settings
breakToD: 12, // [h] time of day when to start/end graphs
appTimeout: 6E4 // lock and backlight timeouts for the app
appTimeout: 0 // lock and backlight timeouts for the app
};
// assign loaded settings to default values
@ -204,10 +204,11 @@
/*LANG*/"App Timeout": {
value: settings.appTimeout / 1E3,
step: 10,
min: 10,
min: 0,
max: 120,
wrap: true,
noList: true,
format: v => v ? v + "s" : "-",
onchange: v => {
settings.appTimeout = v * 1E3;
writeSetting();