mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
RNG app no longer draws when unnecessary.
This commit is contained in:
parent
190985754b
commit
d969f74cae
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user