Commit Graph

1946 Commits

Author SHA1 Message Date
09ca2d913e Drop the unused timeout parameter from lis2dw_read_fifo
The FIFO read no longer waits on a timeout, so the parameter was
ignored by the function. Adapt the signature and its callers, and
remove the now-orphaned LIS2DW_FIFO_TIMEOUT macro.
2026-08-05 09:01:59 +02:00
6f9d58bd93 Read the lis2dw FIFO in a single burst
Replace the per-sample read loop with one burst read of the whole FIFO,
cutting I2C transactions from two per sample to two per read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-03 18:54:16 +02:00
d7f8375def Clamp lis2dw FIFO count to buffer size
The FIFO sample-count field can report up to 63, but readings[] only holds
32. Clamp the count so a glitched or overrun value can't overflow the buffer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-03 18:54:16 +02:00
b2589bebcd Merge pull request #217 from voloved/fix/moon-is_southern_hemisphere
location.bit.latitude  needs to be recast as an int16_t
2026-06-06 17:44:46 -04:00
adbd517694 location.bit.latitude needs to be recast as an int16_t 2026-06-06 17:39:16 -04:00
68bfe1144d Merge pull request #201 from sarasopodo/fix/moon-phase-southern-hemisphere
fix: moon-phase display and quarter labels for southern hemisphere
2026-06-06 16:29:26 -04:00
1fc366b073 Only update the hemisphere if the load didn't fail 2026-06-06 16:23:21 -04:00
191b0c4ab2 Added southern_hemisphere to moon_phase_state_t 2026-06-06 16:19:54 -04:00
851d9d91f0 Hemisphere uses filesystem 2026-06-06 14:01:12 -04:00
576f4e0ec2 Merge pull request #209 from paul-ri/countdown-disable_double_tap
Countdown: Disable double tap
2026-06-05 07:51:21 -04:00
b6a85aca9d Merge pull request #210 from chadnorvell/flake-python3
flake.nix: Add python313
2026-06-05 07:44:38 -04:00
cd41e6fbd4 Merge pull request #214 from timdoug/fix-finetune-ppm-display
Fix ppm fractional display on finetune Frq page
2026-06-05 07:44:29 -04:00
1ba5f97c2f Merge pull request #211 from Niehztog/fix_days_since_timezone_offset
days_since_face: Replace calls to watch_rtc_get_date_time() with movement_get_local_date_time() to make the face "timezone aware"
2026-06-05 07:42:52 -04:00
907ec4969f Merge pull request #216 from voloved/settings-less-blinking
Settings display no longer clears every second as it shows a flicker on some watches
2026-06-05 07:40:27 -04:00
f64fccd2af Settings display no longer clears every second as it shows a flicker on some watches 2026-05-31 07:56:42 -04:00
b178390e75 Fix ppm fractional display on finetune Frq page
The Frq page used remainderf to extract the fractional part of the
correction value, but remainderf rounds to the nearest integer and
returns negative results when the fraction exceeds 0.5. This caused
values like 0.965 ppm to render as " 0-350" instead of " 09650".
Switch to fmodf, matching the DELtA page above.
2026-05-26 23:15:06 -04:00
f898f49a7f days_since_face: Replace all three calls to watch_rtc_get_date_time() with movement_get_local_date_time() to make the face "timezone aware" 2026-05-14 13:05:45 +02:00
7e1b873798 flake.nix: Add python313
Python is needed to run uf2conv, so the final build step will fail
without it. Most folks will have a global Python to fall back to, but
this change fixes the build for those who don't, and makes the Nix
environment more complete.
2026-04-28 16:35:18 -07:00
6a304cb1eb countdown:Disable double tap detection
With double tap enabled, one had to tap not too fast on
the watch to increment the minutes regularly. Otherwise,
some taps would be discarded.
This made using the countdown face without looking at the
screen for acknowledgement of taps impossible.
It was also impossible to increment minutes quickly, every second tap
would be discarded.
2026-04-26 15:09:45 +01:00
32ce50e70e movement:Allow disabling double tap detection in movement_enable_tap_detection_if_available
We will want to disable it in the countdown face.
2026-04-26 15:08:57 +01:00
f25ac9c9d6 moon-phase: fix display and quarter labels for southern hemisphere 2026-04-22 02:41:04 -03:00
a8ea642d35 Merge pull request #194 from davidegirardi/fix-signal-advanced-timer
Fix timer setting bell indicator on other faces on loop
2026-04-16 12:23:06 -04:00
6b334541af Merge pull request #207 from voloved/tide-cleanup
Warning Cleanups After Recent Merges
2026-04-16 11:19:41 -04:00
ab4fcd951d Made enums on tide face follow other faces 2026-04-16 11:06:05 -04:00
08f8cb687e Fixed build warnings 2026-04-16 11:01:48 -04:00
84b133feee Merge pull request #198 from stephan242/timezone-fully-automatic
fix(documentation): Time Zones now DST aware
2026-04-08 04:59:06 +00:00
25e791c302 Merge pull request #113 from mkende/countdown_indicator
Repeating countdown: use the looped arrows indicator instead of the bell one on the custom LCD
2026-04-08 04:50:29 +00:00
0b57376983 Merge pull request #176 from eiriksm/patch-3
Indicate more stability in readme
2026-04-08 04:44:02 +00:00
a5fcde118e Merge branches 'stephan242-inactivity-countdown-when-le-never' and 'stephan242-off-by-one' 2026-04-08 04:42:48 +00:00
546097dc94 fix: Handle inactivity timeout better in case LE is Never 2026-04-04 23:38:44 +01:00
c1620e854a fix(documentation): Time Zones now DST aware 2026-04-04 22:48:43 +01:00
e0a429aabe fix(settings_face): Off by one if Low Energy Mode forbidden 2026-04-04 22:29:00 +01:00
5fa9b7bd24 Merge pull request #196 from stephan242/sun-before-DST-change
fix: sunrise/set before DST change
2026-04-04 19:22:58 +00:00
8bd07b407c fix: sunrise/set before DST change
The Sunrise and Sunset timezone offset needs to be calculated for the day it's relevant to, since it might experience a timezone  change.
2026-04-04 19:27:35 +01:00
e0b425ca90 Fix setting bell indicator on other faces on loop 2026-04-04 19:14:00 +02:00
cb58dea276 Merge pull request #193 from davidegirardi/fix-buzzer-cb-start
Fix calling start callback
2026-04-04 10:35:48 -04:00
ba9f41f963 Fix calling start callback 2026-04-04 16:07:03 +02:00
4f9d7b7219 Merge pull request #107 from mkende/safe_totp
Allow to pass secrets to totp_face through a separate (ignored) header.
2026-04-01 16:42:04 -04:00
fd504d03dc Merge pull request #108 from mkende/tide_face
Add a tide computation watch face.
2026-04-01 16:41:37 -04:00
422c3c2321 Merge pull request #109 from mkende/otp_label
Allow to use 3 character long labels in the totp face.
2026-04-01 16:41:24 -04:00
1f8e96c3fe Merge branch 'main' into tide_face 2026-04-01 16:40:57 -04:00
73d1e1d879 Merge pull request #178 from redraw/fix/simulator-watch-rtc-counter
Improved simulator watch RTC counter precision
2026-03-19 21:59:24 +00:00
1680b66410 Merge pull request #187 from sepi/local-solar-time
Add Local solar time watch face
2026-03-14 10:03:57 -04:00
b31a69d72b Merge branch 'main' into local-solar-time 2026-03-14 09:59:32 -04:00
1243c57dcc Remove solar_time_face from watch_faces array 2026-03-14 09:58:25 -04:00
9822502e1d Merge pull request #186 from tahnok/tomato_face_upgrade
port tomato face to second_movement
2026-03-14 08:58:15 -04:00
67f63872f8 don't resign from tomato time if timer is running 2026-03-07 16:53:48 -05:00
0247ef43a9 fix timezone / unix time conversion bug 2026-03-07 16:53:35 -05:00
14d0ba73e0 Better support for custom display 2026-03-04 14:55:32 +01:00
eba8b7953e Revert more config 2026-03-04 14:24:27 +01:00