diff options
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r-- | apps/shortcuts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 6997491424..e8ea1df0d9 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c | |||
@@ -270,15 +270,13 @@ int readline_cb(int n, char *buf, void *parameters) | |||
270 | break; | 270 | break; |
271 | case SHORTCUT_TIME: | 271 | case SHORTCUT_TIME: |
272 | #if CONFIG_RTC | 272 | #if CONFIG_RTC |
273 | sc->u.timedata.talktime = false; | ||
273 | if (!strcasecmp(value, "talk")) | 274 | if (!strcasecmp(value, "talk")) |
274 | sc->u.timedata.talktime = true; | 275 | sc->u.timedata.talktime = true; |
275 | else | 276 | else |
276 | #endif | 277 | #endif |
277 | if (!strncasecmp(value, "sleep ", strlen("sleep "))) | 278 | if (!strncasecmp(value, "sleep ", strlen("sleep "))) |
278 | { | ||
279 | sc->u.timedata.talktime = false; | ||
280 | sc->u.timedata.sleep_timeout = atoi(&value[strlen("sleep ")]); | 279 | sc->u.timedata.sleep_timeout = atoi(&value[strlen("sleep ")]); |
281 | } | ||
282 | else | 280 | else |
283 | sc->type = SHORTCUT_UNDEFINED; /* error */ | 281 | sc->type = SHORTCUT_UNDEFINED; /* error */ |
284 | break; | 282 | break; |