mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
shortcuts: voice: fix name isn't ignored when timedata.sleep_timeout < 0
regression introduced in 94cf340
Change-Id: Ib214021413d500b5538e38a38edfe620d3fd3a7b
This commit is contained in:
parent
94cf3403e2
commit
855c4d666a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue