summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-12-08 20:06:55 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-12-15 12:02:21 -0500
commit75f74814c00383de4fc7b134a26fd10ee2eb8486 (patch)
tree65bc85c5e5f786b933f6e3b37a277b42a9fd9bd5
parent4adad0bc1f508360999de176048f89025ce84b3e (diff)
Voice: Don't omit "shutting down" speech warning when battery dies.
(Taken from Igor Poretsky's tree) Change-Id: I0fee8346e857eeaea5059360c0f35bd6a2e98b97
-rw-r--r--apps/misc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/misc.c b/apps/misc.c
index b3ae8e9af5..b43d347d91 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -361,20 +361,6 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#endif
scrobbler_shutdown(true);
- if(global_settings.talk_menu)
- {
- bool enqueue = false;
- if(msg_id != -1)
- {
- talk_id(msg_id, enqueue);
- enqueue = true;
- }
- talk_id(LANG_SHUTTINGDOWN, enqueue);
-#if CONFIG_CODEC == SWCODEC
- voice_wait();
-#endif
- }
-
system_flush();
#ifdef HAVE_EEPROM_SETTINGS
if (firmware_settings.initialized)
@@ -390,6 +376,20 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
dircache_disable();
#endif
+ if(global_settings.talk_menu)
+ {
+ bool enqueue = false;
+ if(msg_id != -1)
+ {
+ talk_id(msg_id, enqueue);
+ enqueue = true;
+ }
+ talk_id(LANG_SHUTTINGDOWN, enqueue);
+#if CONFIG_CODEC == SWCODEC
+ voice_wait();
+#endif
+ }
+
shutdown_hw();
}
return false;