under a minute announce every 10s

This commit is contained in:
Demur Rumed 2025-06-08 18:54:38 +00:00
commit 19838b52f3

View file

@ -147,7 +147,7 @@ void RegisterOnInterfaceUpdateHook() {
timer = gSaveContext.subTimerSeconds;
}
if (timer > 0 && timer % 30 == 0 && timer != prevTimer) {
if (timer > 0 && timer % (timer < 60 ? 10 : 30) == 0 && timer != prevTimer) {
uint32_t minutes = timer / 60;
uint32_t seconds = timer % 60;
char* announceBuf = ttsAnnounceBuf;