From 855c4d666ab6177ce5cec4bc181bdbc233a04d18 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 6 Jun 2025 22:44:39 +0200 Subject: [PATCH] shortcuts: voice: fix name isn't ignored when timedata.sleep_timeout < 0 regression introduced in 94cf340 Change-Id: Ib214021413d500b5538e38a38edfe620d3fd3a7b --- apps/shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 7846d689af..33383efb1c 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -607,7 +607,7 @@ static int shortcut_menu_speak_item(int selected_item, void * data) talk_timedate(); else #endif - if (sc->name[0]) + if (sc->name[0] && sc->u.timedata.sleep_timeout >= 0) talk_spell(sc->name, false); else talk_sleeptimer(sc->u.timedata.sleep_timeout);