comparison src/divemode.asm @ 606:8b250afb8bdd

minor
author heinrichsweikamp
date Sun, 25 Nov 2018 15:15:27 +0100
parents 5ce603c29750
children d866684249bd
comparison
equal deleted inserted replaced
605:5ce603c29750 606:8b250afb8bdd
198 rcall set_min_temp ; store min. temp if required (future hardware will need this to be checked 1/second...) 198 rcall set_min_temp ; store min. temp if required (future hardware will need this to be checked 1/second...)
199 199
200 btfsc oneminupdate ; one minute tasks 200 btfsc oneminupdate ; one minute tasks
201 rcall update_divemode60 ; update clock, etc. 201 rcall update_divemode60 ; update clock, etc.
202 202
203 btfss FLAG_oc_mode ; are we in OC mode? 203 bsf FLAG_TFT_active_gas_divemode; have the gas and setpoint redrawn on every second to update setpoint display, animate the blinking, etc.
204 bsf FLAG_TFT_active_gas_divemode; NO - have the gas and setpoint redrawn on every second to update setpoint display, animate the blinking, etc.
205 204
206 btfss alternative_divelayout 205 btfss alternative_divelayout
207 rcall TFT_output3_normal 206 rcall TFT_output3_normal
208 btfsc alternative_divelayout 207 btfsc alternative_divelayout
209 rcall TFT_output3_alternative 208 rcall TFT_output3_alternative
549 SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; transfer ambient pressure to deco engine 548 SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; transfer ambient pressure to deco engine
550 clrf TMR5L ; restart timer used to preempt stops calculation 549 clrf TMR5L ; restart timer used to preempt stops calculation
551 clrf TMR5H ; 550 clrf TMR5H ;
552 call deco_calc_hauptroutine ; invoke the deco engine (p2_deco.c) 551 call deco_calc_hauptroutine ; invoke the deco engine (p2_deco.c)
553 banksel common 552 banksel common
554
555 ; the displayed gas may need a different color-coding
556 bsf FLAG_TFT_active_gas_divemode; redraw gas/setpoint/diluent
557 553
558 ; check if display shall be updated due to deco engine restart 554 ; check if display shall be updated due to deco engine restart
559 btfsc FLAG_TFT_display_ndl_or_deko; shall update immediately? 555 btfsc FLAG_TFT_display_ndl_or_deko; shall update immediately?
560 bra calc_deko_engine_update ; YES 556 bra calc_deko_engine_update ; YES
561 557