Mercurial > public > hwos_code
comparison src/gaslist.asm @ 160:99ac325586ce
BUGFIX: Fast diluent (w/o dive mode menu) change did not work correctly
author | heinrichsweikamp |
---|---|
date | Mon, 08 Sep 2014 15:39:41 +0200 |
parents | afa31c815f24 |
children | 932e91074bdb |
comparison
equal
deleted
inserted
replaced
159:2eb037f48c3f | 160:99ac325586ce |
---|---|
164 ; NOTE: used in the menu-tree for the MENU_CALLBACK entry. | 164 ; NOTE: used in the menu-tree for the MENU_CALLBACK entry. |
165 | 165 |
166 gaslist_strcat_gas_better: ; Yes, check if this is a "better gas" | 166 gaslist_strcat_gas_better: ; Yes, check if this is a "better gas" |
167 movlw .0 | 167 movlw .0 |
168 movff WREG,win_invert | 168 movff WREG,win_invert |
169 incf gaslist_gas,W ; gaslist_gas+1 -> WREG | 169 decf better_gas_number,W ; better_gas_number-1 -> WREG |
170 cpfseq better_gas_number ; 1-5 for OC/Bailout and 6-10 for diluents | 170 btfsc ccr_diluent_setup ; in CCR menus? |
171 addlw .5 ; Yes, offset to gases 5-9 | |
172 cpfseq gaslist_gas ; 0-4 for OC/Bailout, 5-9 for Diluents | |
171 return | 173 return |
172 call TFT_attention_color ; show in yellow | 174 call TFT_attention_color ; show in yellow |
173 movlw .1 | 175 movlw .1 |
174 movff WREG,win_invert ; and invert | 176 movff WREG,win_invert ; and invert |
175 return | 177 return |