]> git.earman.xyz Git - sensor-watch.git/commit
faces/totp: update watch face logic for new struct
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Wed, 21 Feb 2024 02:20:21 +0000 (23:20 -0300)
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Wed, 21 Feb 2024 02:20:21 +0000 (23:20 -0300)
commit79cfe315ffd27e45bc54571e03c8d622745e6df3
tree9f872670d9f05f700e283e6468576a35102cdc1a
parentbbb920a5d81f04e55dac3dbc2b9034fde22c7e4c
faces/totp: update watch face logic for new struct

Using the new structured TOTP record data structure
allows the TOTP watch face to statically and implicitly
compute the total number of defined TOTP records.

Users can now simply add new keys and records in the designated area
and the watch face will compile and automatically use them with no need
to maintain a separate array size variable. Less chance of mistakes.
movement/watch_faces/complication/totp_face.c