summaryrefslogtreecommitdiffstats
path: root/movement
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-24 12:20:32 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-24 12:20:32 -0500
commit1a1a862d7941f720df79fb62fa03211cf083e127 (patch)
tree482d9ed26504c9af16f80393accd34b6c8c40106 /movement
parent169d4486f9f0f135565558094bbbd2f6495a3318 (diff)
downloadSensor-Watch-1a1a862d7941f720df79fb62fa03211cf083e127.tar.gz
Sensor-Watch-1a1a862d7941f720df79fb62fa03211cf083e127.tar.bz2
Sensor-Watch-1a1a862d7941f720df79fb62fa03211cf083e127.zip
movement: TOTP face, pad code with leading zeroes
Diffstat (limited to 'movement')
-rw-r--r--movement/watch_faces/complications/totp_face.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/watch_faces/complications/totp_face.c b/movement/watch_faces/complications/totp_face.c
index e58fb47d..4aa1382a 100644
--- a/movement/watch_faces/complications/totp_face.c
+++ b/movement/watch_faces/complications/totp_face.c
@@ -52,7 +52,7 @@ bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void
totp_state->steps = result.quot;
}
valid_for = TIMESTEP - result.rem;
- sprintf(buf, "2f%2d%lu", valid_for, totp_state->current_code);
+ sprintf(buf, "2f%2d%06lu", valid_for, totp_state->current_code);
watch_display_string(buf, 0);
break;