comparison src/divemode.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 e3ac5b2021bc
comparison
equal deleted inserted replaced
137:28b057aa9f75 138:2852b0bd6391
912 912
913 divemode_option_gaschange: ; Switch to the better gas 913 divemode_option_gaschange: ; Switch to the better gas
914 movff better_gas_number,menupos; 1-5 914 movff better_gas_number,menupos; 1-5
915 bsf divemode_gaschange ; Change the gas in the dive mode loop... 915 bsf divemode_gaschange ; Change the gas in the dive mode loop...
916 call menuview_toggle_reset ; Reset to zero (Zero=no menuview) 916 call menuview_toggle_reset ; Reset to zero (Zero=no menuview)
917 bcf better_gas_available ; Clear flag immediately
917 return 918 return
918 919
919 divemode_option0: ; Start/Setup Divemode menu 920 divemode_option0: ; Start/Setup Divemode menu
920 call TFT_clear_divemode_menu ; Clear menu area 921 call TFT_clear_divemode_menu ; Clear menu area
921 bcf menuview 922 bcf menuview