comparison src/divemenu_tree.asm @ 193:901c10831e4e

reset voting logic on sensor switch
author heinrichsweikamp
date Mon, 03 Nov 2014 17:31:03 +0100
parents efe70488a04b
children bca0f054f023
comparison
equal deleted inserted replaced
192:efe70488a04b 193:901c10831e4e
65 movlw .1 ; Switch to Sensor 65 movlw .1 ; Switch to Sensor
66 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor 66 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor
67 bsf voting_logic_sensor1 67 bsf voting_logic_sensor1
68 bsf voting_logic_sensor2 68 bsf voting_logic_sensor2
69 bsf voting_logic_sensor3 69 bsf voting_logic_sensor3
70 extern divemode_setup_sensor_values
71 call divemode_setup_sensor_values ; Setup sensor values
70 bra do_switch_sp2 72 bra do_switch_sp2
71 73
72 do_divemode_resetavr: 74 do_divemode_resetavr:
73 bsf reset_average_depth ; Set Flag 75 bsf reset_average_depth ; Set Flag
74 bra do_exit_divemode_menu ; And exit 76 bra do_exit_divemode_menu ; And exit