Closed shtrom closed 1 year ago
I wasn't sure how often the RTC ticked. I guess every minutes, but maybe more often? So the alreadyVibrated
variable ensures we only vibrate once per hour, at currentTime.Minute == 0
, regardless of how often the RTC wakes us up in that minute.
It gets reset to false
any time it's not 0
minutes, ready for the next hour.
The RTC should tick once per minute by default, so I think the currentTime.Minute == 0
condition should trigger the vibrate once per hour, without needing alreadyVibrated
(since subsequent in subsequent ticks currentTime.Minute
won't be 0)
This should be good now 👍🏼
Looks great, thanks!
Add opion to vibrate every hour (and on reset)
Set
watchySettings.vibrateOClock
totrue
to activate.