From d969f74cae81eb01d2615d0f998f28086cae2f9a Mon Sep 17 00:00:00 2001 From: Travis Goodspeed Date: Sun, 29 Jul 2018 12:45:43 -0400 Subject: [PATCH] RNG app no longer draws when unnecessary. --- firmware/apps/rngapp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/apps/rngapp.c b/firmware/apps/rngapp.c index 7659f06..06f5191 100644 --- a/firmware/apps/rngapp.c +++ b/firmware/apps/rngapp.c @@ -20,6 +20,7 @@ static unsigned int num = 0, last_num = 0; //! Enter the rng tool. void rngapp_init(){ + lcd_string("press 0 "); rng_disp_format = DECIMAL; } //! Exit the rng tool. @@ -48,9 +49,7 @@ int rngapp_keypress(char ch){ //! Draw the screen, only if the number has changed. void rngapp_draw(){ - if (!num) { - lcd_string("press 0 "); - } else if (num!=last_num) { + if (num!=last_num) { last_num=num; lcd_string(" "); if (rng_disp_format == DECIMAL) {