Commit 32fa81c
fix(tts): stop settings-save from resetting nexttime; bump v0.2.4.2-alpha
applyComposeSettings() and the legacy dialog save handler both called
nexttime = System.currentTimeMillis() + cursep;
on every save — including on every slider tick and every app-resume that
reloads settings. This stamped a full separation-period blackout on the
rate limiter unconditionally, so 9 readings could be suppressed before
the first speak and after every settings interaction.
Trace evidence: 71 glucose notifications, only 7 spoken, first speak at
T+607 s despite nexttime=0 at init — a settings reload at app resume had
set nexttime = T_resume + cursep before the first glucose arrived.
Fix: remove the nexttime assignment from both save paths. cursep is still
updated so the correct interval takes effect immediately; nexttime advances
only inside selspeak() after a reading is actually announced.
Remaining nexttime write sites after this change:
selspeak() — advances gate after each spoken reading ✓
SuperGattCallback L494 — resets to 0 when alarm speech starts ✓
volatile static init — initial zero ✓
Bump: versionCode 8241 → 8242, versionName 0.2.4.1 → 0.2.4.2-alpha
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f75893b commit 32fa81c
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
873 | 872 | | |
874 | 873 | | |
875 | 874 | | |
876 | | - | |
877 | | - | |
878 | 875 | | |
879 | 876 | | |
880 | 877 | | |
| |||
0 commit comments