# HG changeset patch # User heinrichsweikamp # Date 1308670652 -7200 # Node ID 8e272339fb68cf6ddb89ac43382aef20b91ed8f1 # Parent ee5e1c65657c3520a611c68f857d89e4d8176918 1.91beta RC diff -r ee5e1c65657c -r 8e272339fb68 code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Sun Jun 19 20:22:52 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Tue Jun 21 17:37:32 2011 +0200 @@ -6,6 +6,7 @@ BUGFIX: Logbook time scale (squares are 10min * 10m) BUGFIX: Bühlmann half-times rounded to the minute BUGFIX: Protect again rare race contition on pressure/temperature +BUGFIX: Time is now accurate CHANGE: CF02 now allows delay of more then 240seconds CHANGE: First gas do not reset change depth CHANGE: Logbook format 21: store & shows dive model (sat/desat or GF_low/high factors), diff -r ee5e1c65657c -r 8e272339fb68 code_part1/OSTC_code_asm_part1/isr.asm --- a/code_part1/OSTC_code_asm_part1/isr.asm Sun Jun 19 20:22:52 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Tue Jun 21 17:37:32 2011 +0200 @@ -399,7 +399,7 @@ return clrf hours incf day,F -; movff time_correction_value,secs ; Correct too slow clock + movff time_correction_value,secs ; Correct too slow clock check_date: movff month,isr_divB ; new month? diff -r ee5e1c65657c -r 8e272339fb68 code_part1/OSTC_code_asm_part1/menu_reset.asm --- a/code_part1/OSTC_code_asm_part1/menu_reset.asm Sun Jun 19 20:22:52 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm Tue Jun 21 17:37:32 2011 +0200 @@ -169,7 +169,7 @@ CF_DEFAULT CF_CENTI, d'161', d'100', d'161' ; color_warn_ppo2_cbar ppO2 warn CF_DEFAULT CF_INT8, d'15', d'7', d'20' ; color_warn_celocity_mmin warn at xx m/min - CF_DEFAULT CF_SEC+CF_NEG,d'42', -d'120',d'120' ; time_correction_value_default Adds to Seconds on Midnight + CF_DEFAULT CF_SEC+CF_NEG,d'0', -d'120' ,d'120' ; time_correction_value_default Adds to Seconds on Midnight CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF#49 Show Altimeter in surface mode CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF50 Show Log-Marker CF_DEFAULT CF_BOOL, d'1', 0, 0 ; CF51 Show Stopwatch diff -r ee5e1c65657c -r 8e272339fb68 code_part1/OSTC_code_asm_part1/start.asm --- a/code_part1/OSTC_code_asm_part1/start.asm Sun Jun 19 20:22:52 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Tue Jun 21 17:37:32 2011 +0200 @@ -128,6 +128,15 @@ movwf EEDATA call write_eeprom ; write version y clrf EEADRH ; Reset EEADRH + +; Reset CF48 + movlw d'1' + movwf EEADRH ; Bank1 + clrf EEDATA ; =0 + write_int_eeprom d'191' + write_int_eeprom d'192' + write_int_eeprom d'193' + write_int_eeprom d'194' ; Reset Default and Current Value to zero ; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart" restart: