add support for multiple TOTP keys

This commit is contained in:
Jack Bond-Preston
2022-08-29 01:11:02 +01:00
parent 7fc4395298
commit 8b3c02ace5
2 changed files with 35 additions and 14 deletions

View File

@@ -7,7 +7,8 @@ typedef struct {
uint32_t timestamp;
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);