Matheus Afonso Martins Moreira
b1adbd548e
movement: fix unintended timeout short circuiting
...
Currently, movement drops time out events in case the previous loop
indicates that sleep is not possible due to short circuiting behavior
of logical and in C: if the left-hand side is false, the right hand
side is not evaluated at all, which means the loop is not called.
This was not intended to happen.
Fix it by storing the result in a second boolean variable
and working out the logic after the fact.
2024-03-05 21:49:32 -03:00
Matheus Afonso Martins Moreira
6ca553e648
movement: convert can_sleep an automatic variable
...
It is a simple boolean value and its scope is limited to the function.
There is no reason that I can think of for it to be a static variable.
2024-03-05 21:08:10 -03:00
Max Zettlmeißl
af18673e1a
Change inactivity deadlines: add 10 minutes and remove 2 days. ( #365 )
...
I like to use the ten minute timeout on my watch and there are other
people who have similar interests in a lower deadline. The two day
deadline had to go to still accommodate the change within the three
bit index.
The default setting is still the one hour timeout.
2024-02-07 14:02:41 -05:00
Christian Buschau
898b159a90
Revert "make the watch-face a global in movement.c, actually"
...
This reverts commit 0e801ed505
.
2024-01-21 20:31:37 +01:00
Wesley Aptekar-Cassels
3703d565ed
Merge pull request #337 from theAlexes/theAlexes/wyoscan-zero
...
make the zero in wyoscan a little more visually appealing
2024-01-21 02:35:32 -05:00
Wesley Aptekar-Cassels
501ed8f9d2
Merge branch 'main' into watch-face-save-load
2024-01-21 02:08:28 -05:00
Wesley Aptekar-Cassels
fe48776dae
Merge branch 'main' into watch-face-day-night-percentage
2024-01-21 02:04:20 -05:00
Wesley Aptekar-Cassels
f16ce6a767
Merge branch 'main' into watch-face-simple-coin-flip
2024-01-21 02:01:27 -05:00
Wesley Aptekar-Cassels
29784983b5
Merge branch 'main' into watch-face-solstice
2024-01-21 01:58:20 -05:00
Wesley Aptekar-Cassels
d7369cd00d
Merge branch 'main' into theAlexes/cleanup
2024-01-21 01:31:58 -05:00
CarpeNoctem
6985ca54f3
template: fix compiler warning on watch_face_index as mentioned in PR 269
2024-01-17 23:08:54 +11:00
Wesley Aptekar-Cassels
07e45acba7
Merge pull request #325 from WesleyAC/fix-le-buzzer-default-tune
...
Fix buzzer in LE mode.
2024-01-11 19:53:51 -05:00
joeycastillo
cd44cb74a2
fix alternate firmware script
2024-01-10 09:38:33 -05:00
Wesley Aptekar-Cassels
bf8c1b5dae
Merge pull request #342 from theAlexes/theAlexes/nanosec-profile-bug
...
delete stray line of code that messed with correction profile
2024-01-09 17:46:48 -05:00
Alex Maestas
aa3a1eeeef
movement: Use LE mode code to keep buzzer awake, instead of sleeping.
2024-01-09 16:24:11 -05:00
Wesley Aptekar-Cassels
e9fe4aeefe
Enable custom signal tones in LE mode.
...
This makes movement_play_signal synchronous when in LE mode, despite
using the underlying asynchronous API. It's a bit of a hack, but it
should work well enough for now.
This also moves the enabling/disabling of the buzzer into the
movement_play_signal function, so that watch faces no longer have to do
it.
2024-01-09 16:22:21 -05:00
Wesley Aptekar-Cassels
3ee32c6e57
Use legacy buzzer functions when playing default tune.
...
This allows the default tune to be played in LE mode.
Fixes : #275
2024-01-09 16:22:21 -05:00
Wesley Aptekar-Cassels
6f4917a0d5
Revert "Merge pull request #283 from neutralinsomniac/fix_hourly_chime_background"
...
This reverts commit 5c94111ea2
, reversing
changes made to bc9b4ce700
.
2024-01-09 16:22:21 -05:00
Pietro F. Maggi
8e0e942573
Handle visibility for tomato watchface
...
(cherry picked from commit 547e8248ba3538693ee8c587a92ffece7b40d1a2)
2024-01-07 12:43:18 +01:00
Alex Maestas
399679ac59
delete stray line of code that messed with correction profile while adjusting cadence
2023-12-22 22:35:46 +00:00
Alex Maestas
0e801ed505
make the watch-face a global in movement.c, actually
2023-12-17 03:23:26 +00:00
Alex Maestas
8eae6eabd6
clean up trailing whitespace in movement.c
2023-12-16 22:23:32 +00:00
Alex Maestas
0ffe19da5b
use a pointer to the watch face in the app loop instead of indirecting through the index each time, and also recalculate can_sleep based on the timeout loop call.
2023-12-16 22:23:19 +00:00
Alex Maestas
06d546f179
make it clear that the movement_state contains indexes
2023-12-16 22:08:10 +00:00
Alex Maestas
dd9ca10122
make the zero in wyoscan a little more visually appealing
2023-12-08 22:11:56 +00:00
PrimmR
1b90a4a07a
Kitchen Conversions Face
2023-12-01 15:33:38 -05:00
Wesley Aptekar-Cassels
a2f1ba9171
Merge branch 'main' into day_one_face
2023-11-27 23:08:28 -05:00
Alex Utter
7802994854
Fix missing documentation for many clock faces:
...
* Move from .c to .h as needed for consistency.
* When missing from both, copy from pull request or wiki.
* When missing entirely, infer functionality from source code.
2023-11-27 23:06:19 -05:00
Ekaitz Zárraga
735bbc97d7
Merge branch 'main' into couch-2-5k
2023-11-19 15:36:52 +01:00
Ekaitz Zarraga
f77ddc83b8
Resign when the entering LE
2023-11-19 15:31:56 +01:00
Ekaitz Zarraga
30c8da7f55
Fit naming conventions
2023-11-19 15:28:45 +01:00
Wesley Aptekar-Cassels
6cc2b23723
Merge branch 'main' into feat/minute-repeater-decimal-face
2023-11-19 00:56:33 -05:00
Wesley Aptekar-Cassels
3b9fd8b0e9
Merge pull request #302 from LtKeks/Sensor-Watch-bugfix-timer_face-datatype
...
timer_face - Possibility to set seconds as default values
2023-11-18 23:12:51 -05:00
Wesley Aptekar-Cassels
2b7162c2be
Merge pull request #270 from perw/tuning_tones
...
new face: Tuning tones
2023-11-18 23:11:56 -05:00
Christian Buschau
984990fb66
day_one_face: show set date on short alarm button press
2023-11-17 09:11:18 +01:00
Christian Buschau
e8b7985dde
day_one_face: enable quick cycle through settings
...
This allows the alarm button to be held down in the date settings and
quickly cycle through the dates instead of having to push for each
single increment like in other faces.
2023-11-17 09:11:18 +01:00
Christian Buschau
1022359252
day_one_face: allow years until 2080
...
This is the same limit introduced in commit 7fd51ca
2023-11-17 09:11:18 +01:00
Christian Buschau
8c7e9fa558
day_one_face: cleanup
2023-11-17 09:11:16 +01:00
Wesley Aptekar-Cassels
1120690e13
Add save_load_face.
2023-11-09 22:22:40 -05:00
Wesley Aptekar-Cassels
691f2fe506
day_night_percentage_face: Clear seconds digits when entering LE mode.
2023-11-09 20:31:56 -05:00
Wesley Aptekar-Cassels
26f63dcaeb
day_night_percentage_face: Use PM indicator instead of DA/NI.
...
This allows for use of the weekday digits for displaying the weekday.
2023-11-09 17:35:58 -05:00
Wesley Aptekar-Cassels
2e8ee9965e
day_night_percentage_face: Calculate rise/set/daylen only once per day.
2023-11-09 17:21:35 -05:00
Wesley Aptekar-Cassels
f1d4d4ce89
Add day_night_percentage_face.
2023-11-09 02:34:36 -05:00
Wesley Aptekar-Cassels
73f689e65a
Add simple_coin_flip_face.
2023-11-08 19:29:56 -05:00
Wesley Aptekar-Cassels
dcf167a8bf
Add solstice_face.
2023-11-06 18:01:44 -05:00
Brian Blakley
9c895817a0
Add minute repeater decimal face
2023-10-24 18:20:54 -04:00
Ekaitz Zarraga
d3d76ed0e7
Add sound to pause/resume button
2023-10-21 15:47:26 +02:00
Ekaitz Zarraga
cde6ae3598
Add Couch-To-5k training face
2023-10-21 01:30:03 +02:00
LtKeks
ad846f5060
Update timer_face.c
...
Corrects the data type of the standard values in order to be able to configure seconds as well.
2023-10-15 17:35:36 +02:00
joeycastillo
b162dc0663
use movement_play_signal for default tune (fixes background signal)
2023-09-24 12:41:18 -04:00