From 1a1a862d7941f720df79fb62fa03211cf083e127 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Wed, 24 Nov 2021 12:20:32 -0500 Subject: movement: TOTP face, pad code with leading zeroes --- movement/watch_faces/complications/totp_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'movement/watch_faces') 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; -- cgit v1.2.3