From 78c92c5ca85d275e43bacf0d9948ce9b94605f6e Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 8 Apr 2023 17:13:07 -0400 Subject: [Feature] Supress voice during sleep timer shutdown if show_shutdown_message == false and sleep timer is active talk will be disabled on shutdown Change-Id: Ia660e753700f3e283691f41797ef7a77a2d9a8d9 --- apps/misc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps') diff --git a/apps/misc.c b/apps/misc.c index e10fceb9af..21a45037ad 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -306,6 +306,12 @@ static bool clean_shutdown(enum shutdown_type sd_type, { long msg_id = -1; + if (!global_settings.show_shutdown_message && get_sleep_timer_active()) + { + talk_force_shutup(); + talk_disable(true); + } + status_save(); #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) -- cgit v1.2.3