Closed matheusmoreira closed 3 months ago
Thanks for the thorough commenting and testing :) Once #373 is updated on this branch, we'll be happy to merge this.
Something I forgot to mention about this branch: the clock face replaces the simple clock face in it. I thought it was alright since I've been running it for weeks now with no issues, and I also tested alarms and hourly chimes too. I can split it up again if needed though.
@joeycastillo did request that the simple clock face remain in place, so i think restoring that will make this branch mergeable :)
Yes. More thorough testing of the new clock face was required before it could replace the original, so I created this branch with the clock face replaced in order to flash it to my device for testing. Eventually I started merging all the other PRs as well and it turned into a Linux style next
branch.
Not sure how much testing is enough to be honest. Been running it every day for weeks now, tested every function and have found no issues. What do you think @joeycastillo?
I'm on mobile at the moment and don't have access to a computer right now. When I get home I'll split the faces up in order to unblock this, assuming Joey hasn't changed his mind.
the extensive testing and thorough annotation is quite appreciated, for sure. I think the goal behind having the simple clock face separate from the advanced one is that the simple face serves as a low-complexity example for others to build new faces from, but we'll have to defer to Joey on this.
Yeah, I have this propensity to making small functions. I personally find it easier to understand but others found to be "Lisp-like", a quality which I didn't even try to refute due to my love of lisp. In my mind the refactored code is easier to understand, but I'll respect it if others don't find it so.
@matheusmoreira, I checked simple clock face and "your" clock face in the online firmware builder. They act different in indicating alarm and hourly chime. Refering to https://github.com/joeycastillo/Sensor-Watch/pull/373#issuecomment-2001936555 I thought they should be identically?
@814d3
They act different in indicating alarm and hourly chime.
Yes. It appears the hourly chime and alarm indicators had been swapped in movement. I noticed this and swapped them back. So clock_face
differs from simple_clock_face
but matches the stock watch's behavior. This appears to have been the original intention of the maintainers.
Well, what I read about the original watch behavior is, that the bell indicates a hourly signal und the waves a alarm - it's the same for the simple_clock_face, but not in clock_face. But you are right, in the documentation (https://github.com/joeycastillo/Sensor-Watch/pull/373#issuecomment-2001022142) it's swapped and should be corrected.
@814d3
You're absolutely right about that. I based the decision to switch the icons on the watch library documentation. Turns out the documentation was swapped all along!!
There's the alarm-on-mark
and the time-signal-on-mark
. The watch library documentation says the bell indicates alarms, but on the original module the bell indicates the time signal.
So this should definitely be fixed. Perhaps the fix should happen inside movement at the API level. The constants WATCH_INDICATOR_BELL
and WATCH_INDICATOR_SIGNAL
refer to the same thing.
The following pull requests have been merged and tested on hardware:
The latest commits were fetched and merged, preserving authorship and date information. I also extensively credited all contributors in the merge commits.