From 9a1b5c37ccfbc4f9ecb78b09a6e6fe2928bee36c Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Wed, 20 Nov 2024 08:37:59 -0500 Subject: [PATCH] Silly pointers --- c/src/p2fa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/p2fa.c b/c/src/p2fa.c index 3596071..8370ead 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -34,10 +34,10 @@ int draw() { Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK); Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY); - uint64_t *timeLeft = getTimeRemainingMS(30); + uint64_t timeLeft = getTimeRemainingMS(30); for (int j = 0; j < 3; ++j) { for (int i = getTimeRemainingMS(30); i > 200; i = getTimeRemainingMS(30)) { - Paint_DrawRectangle(10, 112, (timeLeft/(30*1000)) * 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL); + Paint_DrawRectangle(10, 112, (timeLeft / (30 * 1000)) * 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL); DEV_Delay_ms(100); } }