Fixed bug in stopwatch where the hex versions of the count weren't zeroed on a mode change or pressing reset.

This commit is contained in:
Travis Goodspeed 2019-03-01 17:18:10 -05:00
parent 4e188c9e90
commit 66fc9aafd7

View File

@ -38,7 +38,7 @@ static const char subs[]={0, 0x25, 0x50, 0x75};
//! Entry to the stopwatch app.
void stopwatch_init(){
//Zero the count.
count=hour=min=sec=0;
count=hour=hourhex=min=minhex=sec=sechex=0;
//Start off without counting.
counting=0;
@ -69,7 +69,7 @@ int stopwatch_keypress(char ch){
break;
case '0':
//Zero the count.
count=hour=min=sec=0;
count=hour=hourhex=min=minhex=sec=sechex=0;
break;
}