improved display
This commit is contained in:
parent
ad17222ced
commit
65e3d81b88
1 changed files with 7 additions and 6 deletions
|
@ -346,7 +346,7 @@ void update_screen(timer_state_e state){
|
||||||
char content_to_char[50];
|
char content_to_char[50];
|
||||||
char footer_to_char[50];
|
char footer_to_char[50];
|
||||||
|
|
||||||
float curr_time_test = 0.0;
|
float curr_time_local = 0.0;
|
||||||
|
|
||||||
switch(state){
|
switch(state){
|
||||||
case TIMER_INIT:
|
case TIMER_INIT:
|
||||||
|
@ -362,7 +362,7 @@ void update_screen(timer_state_e state){
|
||||||
case TIMER_READY:
|
case TIMER_READY:
|
||||||
header = "Ready!";
|
header = "Ready!";
|
||||||
content = "00:00";
|
content = "00:00";
|
||||||
footer = "Press Startbuton to run ...";
|
footer = "Waiting for start";
|
||||||
break;
|
break;
|
||||||
case TIMER_STARTED:
|
case TIMER_STARTED:
|
||||||
header = "Starting ...";
|
header = "Starting ...";
|
||||||
|
@ -371,8 +371,8 @@ void update_screen(timer_state_e state){
|
||||||
break;
|
break;
|
||||||
case TIMER_RUNNING:
|
case TIMER_RUNNING:
|
||||||
header = "Running ...";
|
header = "Running ...";
|
||||||
curr_time_test = (millis() - start_time)/1000.0;
|
curr_time_local = (millis() - start_time)/1000.000;
|
||||||
content = curr_time_test;
|
content = curr_time_local;
|
||||||
footer = "sek.";
|
footer = "sek.";
|
||||||
break;
|
break;
|
||||||
case TIMER_CANCELLED:
|
case TIMER_CANCELLED:
|
||||||
|
@ -387,8 +387,9 @@ void update_screen(timer_state_e state){
|
||||||
break;
|
break;
|
||||||
case TIMER_FAIL:
|
case TIMER_FAIL:
|
||||||
header = "False start!";
|
header = "False start!";
|
||||||
content = runner_start_time - start_time;
|
curr_time_local = (start_time - runner_start_time)/1000.000;
|
||||||
footer = "milliseconds too early";
|
content = curr_time_local;
|
||||||
|
footer = "seconds too early";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
scr_update = false;
|
scr_update = false;
|
||||||
|
|
Reference in a new issue