comparison src/comm.asm @ 162:95d05cc14736

NEW: Safe tissue data, date and time during firmware update CHANGE: Postion of min. and (NEW:) max. temperature in logbook
author heinrichsweikamp
date Tue, 09 Sep 2014 21:17:25 +0200
parents 2eb037f48c3f
children dcd513840c6c
comparison
equal deleted inserted replaced
161:99065ef2d18e 162:95d05cc14736
24 24
25 extern new_battery_menu,restart,option_reset_all 25 extern new_battery_menu,restart,option_reset_all
26 extern char_I_dil_change, char_I_setpoint_cbar, char_I_setpoint_change 26 extern char_I_dil_change, char_I_setpoint_cbar, char_I_setpoint_change
27 extern char_I_deco_model, char_I_extra_time, char_I_saturation_multiplier, char_I_desaturation_multiplier 27 extern char_I_deco_model, char_I_extra_time, char_I_saturation_multiplier, char_I_desaturation_multiplier
28 extern option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG 28 extern option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG
29 extern vault_decodata_into_eeprom
29 30
30 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop 31 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop
31 #DEFINE timeout_comm_mode .120 ; Download mode 32 #DEFINE timeout_comm_mode .120 ; Download mode
32 #DEFINE timeout_service_mode .120 ; Service mode 33 #DEFINE timeout_service_mode .120 ; Service mode
33 34
243 movwf TXREG1 244 movwf TXREG1
244 call rs232_wait_tx ; Wait for UART 245 call rs232_wait_tx ; Wait for UART
245 246
246 ; Passed: goto second stage verification. 247 ; Passed: goto second stage verification.
247 ; NOTE: Bootloader is Bank0. With buffer at address 0x200. 248 ; NOTE: Bootloader is Bank0. With buffer at address 0x200.
249 call vault_decodata_into_eeprom ; Store last deco data (And Time/Date) into EEPROM
248 goto 0x1FDF0 ; And pray... 250 goto 0x1FDF0 ; And pray...
249 251
250 comm_send_firmware_failed: 252 comm_send_firmware_failed:
251 WIN_SMALL comm_string_column, comm_string_row 253 WIN_SMALL comm_string_column, comm_string_row
252 call TFT_warnings_color 254 call TFT_warnings_color