mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
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:
parent
4e188c9e90
commit
66fc9aafd7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user