comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 376:ed26990716fe 64kByte Logbook

first gas does not reset change depth, display fix with multigas dives in logbook
author heinrichsweikamp
date Sun, 12 Jun 2011 21:27:07 +0200
parents 84a1762de6ab
children f2d5d93b4ca3
comparison
equal deleted inserted replaced
375:84a1762de6ab 376:ed26990716fe
501 movff eeprom_address+1,average_depth_hold+1 ; Pointer to Gaslist (For Page 2) 501 movff eeprom_address+1,average_depth_hold+1 ; Pointer to Gaslist (For Page 2)
502 502
503 incf_eeprom_address d'12' ; Skip 12 Bytes in EEPROM (faster) (Gaslist) 503 incf_eeprom_address d'12' ; Skip 12 Bytes in EEPROM (faster) (Gaslist)
504 call I2CREAD2 ; Read start gas (1-5) 504 call I2CREAD2 ; Read start gas (1-5)
505 movff SSPBUF,active_gas ; Store 505 movff SSPBUF,active_gas ; Store
506 movff active_gas,average_depth_hold_total+3 ; keep copy to restore color
506 incf_eeprom_address d'5' ; Skip 5 Bytes in EEPROM (faster) (Battery, firmware) 507 incf_eeprom_address d'5' ; Skip 5 Bytes in EEPROM (faster) (Battery, firmware)
507 508
508 call I2CREAD2 ; Read divisor 509 call I2CREAD2 ; Read divisor
509 movff SSPBUF,divisor_temperature ; Store divisor 510 movff SSPBUF,divisor_temperature ; Store divisor
510 bcf divisor_temperature,4 ; Clear information length 511 bcf divisor_temperature,4 ; Clear information length