Mercurial > public > hwos_code
comparison src/gaslist.asm @ 189:e79bc535ef9e
ignore un-calibrated sensors even if they become valid
author | heinrichsweikamp |
---|---|
date | Wed, 29 Oct 2014 12:53:01 +0100 |
parents | 932e91074bdb |
children | 31088352ee32 |
comparison
equal
deleted
inserted
replaced
188:ebc28381f17d | 189:e79bc535ef9e |
---|---|
162 ; Output: Text appended into buffer pointed by FSR2. | 162 ; Output: Text appended into buffer pointed by FSR2. |
163 ; | 163 ; |
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 bcf win_invert |
168 movff WREG,win_invert | |
169 decf better_gas_number,W ; better_gas_number-1 -> WREG | 168 decf better_gas_number,W ; better_gas_number-1 -> WREG |
170 btfsc ccr_diluent_setup ; in CCR menus? | 169 btfsc ccr_diluent_setup ; in CCR menus? |
171 addlw .5 ; Yes, offset to gases 5-9 | 170 addlw .5 ; Yes, offset to gases 5-9 |
172 cpfseq gaslist_gas ; 0-4 for OC/Bailout, 5-9 for Diluents | 171 cpfseq gaslist_gas ; 0-4 for OC/Bailout, 5-9 for Diluents |
173 return | 172 return |
174 call TFT_attention_color ; show in yellow | 173 call TFT_attention_color ; show in yellow |
175 movlw .1 | 174 bsf win_invert ; And invert |
176 movff WREG,win_invert ; and invert | |
177 return | 175 return |
178 | 176 |
179 global gaslist_strcat_gas_mod | 177 global gaslist_strcat_gas_mod |
180 gaslist_strcat_gas_mod: | 178 gaslist_strcat_gas_mod: |
181 rcall gaslist_setgas ; Sets gaslist_gas (0-4 for OC/Bailout, 5-9 for Diluents) | 179 rcall gaslist_setgas ; Sets gaslist_gas (0-4 for OC/Bailout, 5-9 for Diluents) |