From: Fredrik Tolf Date: Thu, 5 Jul 2007 03:38:00 +0000 (+0200) Subject: Always redisplay in state 1. X-Git-Url: http://dolda2000.com/gitweb/?p=kokare.git;a=commitdiff_plain;h=66fcaf44207b6c94e9ca06f20e21f96d0587a53e Always redisplay in state 1. --- diff --git a/kokare.c b/kokare.c index 0170237..4c32000 100644 --- a/kokare.c +++ b/kokare.c @@ -322,12 +322,6 @@ int main(void) cur = 0; if(cur > 100) cur = 100; - if(cur < 100) { - display(cur, 0, run); - } else { - dsp[0] = SEGG; - dsp[1] = SEGG | (run?SEGP:0); - } utime = mnow; } if(mnow - utime > 2000000) { @@ -338,6 +332,12 @@ int main(void) run = !run; sstate = 0; } + if(cur < 100) { + display(cur, 0, run); + } else { + dsp[0] = SEGG; + dsp[1] = SEGG | (run?SEGP:0); + } } else if(state == 2) { /* Display raw temp time reading */ if(ttimea < 20000) {