]> git.earman.xyz Git - sensor-watch.git/commitdiff
faces/totp: delete unused structure field
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Wed, 21 Feb 2024 02:24:01 +0000 (23:24 -0300)
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Wed, 21 Feb 2024 02:24:01 +0000 (23:24 -0300)
The TOTP watch face now keeps track of each key separately.
There is no need to compute offsets at runtime.

movement/watch_faces/complication/totp_face.h

index 1248f716ed844df28075c457c16eab34277f5cd4..e103b82461c64c05894b2ee57b0483217434ba8c 100644 (file)
@@ -60,7 +60,6 @@ typedef struct {
     uint8_t steps;
     uint32_t current_code;
     uint8_t current_index;
-    uint8_t current_key_offset;
 } totp_state_t;
 
 void totp_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr);