Mercurial > public > hwos_code
diff src/start.asm @ 93:5e1ef9bf32ec
clear pressure sensor compensation upon update
author | heinrichsweikamp |
---|---|
date | Thu, 17 Apr 2014 10:28:04 +0200 |
parents | 0fae975af741 |
children | f3062a611eef |
line wrap: on
line diff
--- a/src/start.asm Wed Apr 16 22:31:09 2014 +0200 +++ b/src/start.asm Thu Apr 17 10:28:04 2014 +0200 @@ -188,6 +188,13 @@ call TFT_Display_FadeIn ; Display resulting surface screen. ; place "after-update reset" here... + + extern oPressureAdjust, option_reset, option_save + lfsr FSR0,oPressureAdjust + call option_reset ; Reset FSR0 option to factory default. + lfsr FSR0,oPressureAdjust + call option_save ; Save in EEPROM + movlw d'1' ; store current version in EEPROM movwf EEADR movlw d'1'