Mercurial > public > hwos_code
diff src/start.asm @ 281:eb758a5b44eb
BUGFIX: Fix download issue for dives made with 1.80 firmware
author | heinrichsweikamp |
---|---|
date | Tue, 26 May 2015 17:40:13 +0200 |
parents | e4cb495aed3d |
children | cf929551d31c |
line wrap: on
line diff
--- a/src/start.asm Tue May 26 13:24:26 2015 +0200 +++ b/src/start.asm Tue May 26 17:40:13 2015 +0200 @@ -151,9 +151,8 @@ ; check firmware and reset Custom Functions after an update movlw d'1' - movwf EEADR - movlw d'1' - movwf EEADRH + movwf EEADR ; =1 + movwf EEADRH ; =1 call read_eeprom ; read current version x movff EEDATA,temp1 incf EEADR,F ; set to 0x102 @@ -208,10 +207,11 @@ lfsr FSR0,oPressureAdjust call option_save ; Save in EEPROM + call fix_180_dives ; fix dives made with the 1.80 + movlw d'1' ; store current version in EEPROM - movwf EEADR - movlw d'1' - movwf EEADRH + movwf EEADR ; =1 + movwf EEADRH ; =1 movlw softwareversion_x movwf EEDATA call write_eeprom ; write version x