]> git.earman.xyz Git - sensor-watch.git/commitdiff
Merge PR #434 - fix leap years
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Thu, 29 Aug 2024 01:46:49 +0000 (22:46 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Fri, 30 Aug 2024 19:47:38 +0000 (16:47 -0300)
Improves handling of months in the Sensor Watch
by computing whether the given year is a leap year.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/434

1  2 
movement/watch_faces/settings/set_time_hackwatch_face.c

index 166b26e11d1f46647beccf17663c795cf92cfc42,8ba56cba94f1781196a1675f59fd5d3823bcd274..2f4c0341bb5fda96d2bef0c61998c5c6020d0e3d
@@@ -137,7 -135,7 +135,7 @@@ bool set_time_hackwatch_face_loop(movem
              if (current_page != 2) // Do not set time when we are at seconds, it was already set previously
                  watch_rtc_set_date_time(date_time_settings);
              break;
--        
++
          case EVENT_ALARM_LONG_UP://Setting seconds on long release
              switch (current_page) {
                  case 2: // second