Mercurial > public > hwos_code
diff src/customview.asm @ 138:2852b0bd6391
minor: some extra protection against wrong gas selection
author | heinrichsweikamp |
---|---|
date | Thu, 17 Jul 2014 14:34:10 +0200 |
parents | 28b057aa9f75 |
children | 022b886eddaf |
line wrap: on
line diff
--- a/src/customview.asm Thu Jul 17 14:24:51 2014 +0200 +++ b/src/customview.asm Thu Jul 17 14:34:10 2014 +0200 @@ -265,9 +265,10 @@ menuview_view_gaschange: extern gaslist_strcat_gas_mod - btfss better_gas_available ; =1: A better gas is available bra menuview_toggle ; No, call next option + btfsc divemode_gaschange ; Skip if the last gas change is not done yet. + bra menuview_toggle bsf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint movff better_gas_number,PRODL ; number (1-5) of the "better gas" in divemode, =0: no better gas available decf PRODL,F