- sleeptimer: add possibilty to preset with a fixed value

This commit is contained in:
svenhoefer
2013-10-16 10:37:23 +02:00
parent db59b7d3f1
commit 25e550e9e3
8 changed files with 42 additions and 12 deletions

View File

@@ -1143,6 +1143,7 @@ typedef enum
LOCALE_MENU_HINT_SHUTDOWN_RCDELAY,
LOCALE_MENU_HINT_SHUTDOWN_REAL,
LOCALE_MENU_HINT_SLEEPTIMER,
LOCALE_MENU_HINT_SLEEPTIMER_MIN,
LOCALE_MENU_HINT_SOFT_RESTART,
LOCALE_MENU_HINT_SOFTUPDATE_CHECK,
LOCALE_MENU_HINT_SOFTUPDATE_CHECK_LOCAL,
@@ -1268,6 +1269,7 @@ typedef enum
LOCALE_MISCSETTINGS_SHUTDOWN_REAL,
LOCALE_MISCSETTINGS_SHUTDOWN_REAL_RCDELAY,
LOCALE_MISCSETTINGS_SLEEPTIMER,
LOCALE_MISCSETTINGS_SLEEPTIMER_MIN,
LOCALE_MISCSETTINGS_VOLUME,
LOCALE_MISCSETTINGS_ZAPTO_PRE_TIME,
LOCALE_MOTORCONTROL_CALC_POSITIONS,

View File

@@ -1143,6 +1143,7 @@ const char * locale_real_names[] =
"menu.hint_shutdown_rcdelay",
"menu.hint_shutdown_real",
"menu.hint_sleeptimer",
"menu.hint_sleeptimer_min",
"menu.hint_soft_restart",
"menu.hint_softupdate_check",
"menu.hint_softupdate_check_local",
@@ -1268,6 +1269,7 @@ const char * locale_real_names[] =
"miscsettings.shutdown_real",
"miscsettings.shutdown_real_rcdelay",
"miscsettings.sleeptimer",
"miscsettings.sleeptimer_min",
"miscsettings.volume",
"miscsettings.zapto_pre_time",
"motorcontrol.calc_positions",

View File

@@ -68,6 +68,7 @@ struct SNeutrinoSettings
int shutdown_real_rcdelay;
char shutdown_count[4];
char shutdown_min[4];
int sleeptimer_min;
char record_safety_time_before[3];
char record_safety_time_after[3];
int zapto_pre_time;