summaryrefslogtreecommitdiff
path: root/apps/shortcuts.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-12-08 10:27:30 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-12-08 10:27:30 +0000
commit2c7379757cb20ac9731c98847c6f6309d32607f3 (patch)
treefe838f303bf2065b4fc5c3acc6e65fd69bb478bf /apps/shortcuts.c
parent29b1ba3445a8acaffe0fb11c267869eccda80883 (diff)
Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31179 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r--apps/shortcuts.c4
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)
break;
case SHORTCUT_TIME:
#if CONFIG_RTC
+ sc->u.timedata.talktime = false;
if (!strcasecmp(value, "talk"))
sc->u.timedata.talktime = true;
else
#endif
if (!strncasecmp(value, "sleep ", strlen("sleep ")))
- {
- sc->u.timedata.talktime = false;
sc->u.timedata.sleep_timeout = atoi(&value[strlen("sleep ")]);
- }
else
sc->type = SHORTCUT_UNDEFINED; /* error */
break;