mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
Calibration now uses forced drawing.
This commit is contained in:
parent
02372ecde2
commit
42dd279bdd
@ -33,10 +33,10 @@ void calibrate_enforce(){
|
||||
}
|
||||
|
||||
//! Draw the calibrate selection.
|
||||
void calibrate_draw(){
|
||||
// Indicate that we're in the calibrate by setting the plus and
|
||||
// minus digits.
|
||||
lcd_number(calibration);
|
||||
void calibrate_draw(int forced){
|
||||
// Draw the number if it has changed.
|
||||
if(forced)
|
||||
lcd_number(calibration);
|
||||
}
|
||||
|
||||
//! Change the calibration.
|
||||
@ -62,6 +62,8 @@ void calibrate_init(){
|
||||
//Invert the calibration if it's negative.
|
||||
if(RTCCTL2&0x80)
|
||||
calibration=0-calibration;
|
||||
|
||||
calibrate_draw(1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
void calibrate_enforce();
|
||||
|
||||
//! Draw the calibrate selection.
|
||||
void calibrate_draw();
|
||||
void calibrate_draw(int forced);
|
||||
|
||||
//! Change the calibration.
|
||||
int calibrate_keypress(char c);
|
||||
|
Loading…
Reference in New Issue
Block a user