Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
137:28b057aa9f75 | 138:2852b0bd6391 |
---|---|
263 return ; Menupos2 = 0, Show nothing | 263 return ; Menupos2 = 0, Show nothing |
264 | 264 |
265 | 265 |
266 menuview_view_gaschange: | 266 menuview_view_gaschange: |
267 extern gaslist_strcat_gas_mod | 267 extern gaslist_strcat_gas_mod |
268 | |
269 btfss better_gas_available ; =1: A better gas is available | 268 btfss better_gas_available ; =1: A better gas is available |
270 bra menuview_toggle ; No, call next option | 269 bra menuview_toggle ; No, call next option |
270 btfsc divemode_gaschange ; Skip if the last gas change is not done yet. | |
271 bra menuview_toggle | |
271 bsf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint | 272 bsf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint |
272 movff better_gas_number,PRODL ; number (1-5) of the "better gas" in divemode, =0: no better gas available | 273 movff better_gas_number,PRODL ; number (1-5) of the "better gas" in divemode, =0: no better gas available |
273 decf PRODL,F | 274 decf PRODL,F |
274 call gaslist_strcat_gas_mod ; Append gas description of gas #PRODL (0-4) to current string | 275 call gaslist_strcat_gas_mod ; Append gas description of gas #PRODL (0-4) to current string |
275 movlw .5 | 276 movlw .5 |