-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[alarm/sched] Timer doesn't fire (or fires immediately) when enabling from list #3804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems to me like the fix would be to replicate this code (in Lines 543 to 544 in cc05172
into the clkinfo, or more specifically, into Lines 44 to 49 in cc05172
Essentially setting Does #3805 resolve it for you? I can deploy the code if that'd help, I just have another deployment in use for #3803 atm. |
I tried the update but it didn't really change much, the timer will still either not fire or fire immediately |
Thanks - that mustn't be the bug, although I think you're right that it's related to |
@Blockguy24 when you say
Which list do you mean? I took it to be the clock info, but do you mean the alarm menu? |
Yeah, the first thing that appears when opening the Alarms app. I see a list of all alarms, timers and events, and I can long press or tap the icon of the alarm/timer to toggle it enabled or disabled. However, enabling timers in this way has the weird behavior I described. |
Affected hardware version
Bangle 2
Your firmware version
2v25
The bug
Description
On the Bangle.js 2, a timer can be quickly enabled by pressing its icon or long pressing the item in the list. However, this causes some unexpected behaviour. Most of the time the timer never fires, but sometimes it fires immediately after enabling it this way.
Expected Behaviour
Enabling the timer via this shortcut should have the same effect as opening its menu and setting it to be Enabled.
Suspected cause
When enabling via the main menu, neither
prepareTimerForSave
(orprepareAlarmForSave
for alarms) is called, so an old expiration time is used for the timer instead of it being updated when it is enabled.Installed apps
The text was updated successfully, but these errors were encountered: