Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 189:e79bc535ef9e
ignore un-calibrated sensors even if they become valid
author | heinrichsweikamp |
---|---|
date | Wed, 29 Oct 2014 12:53:01 +0100 |
parents | ebc28381f17d |
children | d049511b25c6 |
comparison
equal
deleted
inserted
replaced
188:ebc28381f17d | 189:e79bc535ef9e |
---|---|
1850 btfss blinking_setpoint ; blink now? | 1850 btfss blinking_setpoint ; blink now? |
1851 bra TFT_active_setpoint_diluent ; Done. | 1851 bra TFT_active_setpoint_diluent ; Done. |
1852 | 1852 |
1853 movlw color_yellow ; Blink in yellow | 1853 movlw color_yellow ; Blink in yellow |
1854 call TFT_set_color | 1854 call TFT_set_color |
1855 WIN_STD_INVERT active_gas_column,active_gas_row | 1855 bsf win_invert ; Set invert flag |
1856 WIN_STD active_gas_column,active_gas_row | |
1856 movff char_I_const_ppO2,lo | 1857 movff char_I_const_ppO2,lo |
1857 clrf hi | 1858 clrf hi |
1858 bsf leftbind | 1859 bsf leftbind |
1859 output_16dp d'3' | 1860 output_16dp d'3' |
1860 bcf leftbind | 1861 bcf leftbind |
1861 STRCAT_TEXT tbar | 1862 STRCAT_TEXT tbar |
1862 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 1863 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor |
1863 bra $+4 | 1864 bra $+4 |
1864 PUTC "*" | 1865 PUTC "*" |
1865 STRCAT_PRINT "" | 1866 STRCAT_PRINT "" |
1866 WIN_INVERT .0 ; Init new Wordprocessor | 1867 bcf win_invert ; Reset invert flag |
1867 | 1868 |
1868 TFT_active_setpoint_diluent: | 1869 TFT_active_setpoint_diluent: |
1869 call TFT_standard_color | 1870 call TFT_standard_color |
1870 WIN_SMALL active_dil_column,active_dil_row | 1871 WIN_SMALL active_dil_column,active_dil_row |
1871 movff char_I_O2_ratio,lo ; lo now stores O2 in % | 1872 movff char_I_O2_ratio,lo ; lo now stores O2 in % |
1878 btfss blinking_better_gas ; blink now? | 1879 btfss blinking_better_gas ; blink now? |
1879 return ; No, Done. | 1880 return ; No, Done. |
1880 | 1881 |
1881 movlw color_yellow ; Blink in yellow | 1882 movlw color_yellow ; Blink in yellow |
1882 call TFT_set_color | 1883 call TFT_set_color |
1883 WIN_SMALL_INVERT active_dil_column,active_dil_row | 1884 bsf win_invert ; Set invert flag |
1885 WIN_SMALL active_dil_column,active_dil_row | |
1884 movff char_I_O2_ratio,lo ; lo now stores O2 in % | 1886 movff char_I_O2_ratio,lo ; lo now stores O2 in % |
1885 movff char_I_He_ratio,hi ; hi now stores He in % | 1887 movff char_I_He_ratio,hi ; hi now stores He in % |
1886 rcall TFT_show_dil_divemode2 ; Show gas | 1888 rcall TFT_show_dil_divemode2 ; Show gas |
1887 WIN_INVERT .0 ; Init new Wordprocessor | 1889 bcf win_invert ; Reset invert flag |
1888 call TFT_standard_color | 1890 call TFT_standard_color |
1889 return ; Done. | 1891 return ; Done. |
1890 | 1892 |
1891 TFT_show_dil_divemode2: | 1893 TFT_show_dil_divemode2: |
1892 call customview_show_mix ; Put "Nxlo", "Txlo/hi", "Air" or "O2" into Postinc2 | 1894 call customview_show_mix ; Put "Nxlo", "Txlo/hi", "Air" or "O2" into Postinc2 |
1916 | 1918 |
1917 btg blinking_better_gas ; Toggle blink bit... | 1919 btg blinking_better_gas ; Toggle blink bit... |
1918 btfss blinking_better_gas ; blink now? | 1920 btfss blinking_better_gas ; blink now? |
1919 return ; No, Done. | 1921 return ; No, Done. |
1920 call TFT_attention_color ; blink in yellow | 1922 call TFT_attention_color ; blink in yellow |
1921 WIN_STD_INVERT active_gas_column,active_gas_row | 1923 bsf win_invert ; Set invert flag |
1924 WIN_STD active_gas_column,active_gas_row | |
1922 movff char_I_O2_ratio,lo ; lo now stores O2 in % | 1925 movff char_I_O2_ratio,lo ; lo now stores O2 in % |
1923 movff char_I_He_ratio,hi ; hi now stores He in % | 1926 movff char_I_He_ratio,hi ; hi now stores He in % |
1924 rcall TFT_active_gas_divemode2 ; Show gas (Non-Inverted in all cases) | 1927 rcall TFT_active_gas_divemode2 ; Show gas (Non-Inverted in all cases) |
1925 WIN_INVERT .0 ; Init new Wordprocessor | 1928 bcf win_invert ; Reset invert flag |
1926 call TFT_standard_color | 1929 call TFT_standard_color |
1927 return ; Done. | 1930 return ; Done. |
1928 | 1931 |
1929 TFT_active_gas_divemode2: | 1932 TFT_active_gas_divemode2: |
1930 call customview_show_mix ; Put "Nxlo", "Txlo/hi", "Air" or "O2" into Postinc2 | 1933 call customview_show_mix ; Put "Nxlo", "Txlo/hi", "Air" or "O2" into Postinc2 |
2772 movlw color_grey ; Write header in blue when | 2775 movlw color_grey ; Write header in blue when |
2773 call TFT_set_color ; compiled in DEBUG mode... | 2776 call TFT_set_color ; compiled in DEBUG mode... |
2774 STRCAT_PRINT "DEBUG" | 2777 STRCAT_PRINT "DEBUG" |
2775 else | 2778 else |
2776 STRCAT_PRINT "" | 2779 STRCAT_PRINT "" |
2777 WIN_INVERT 0 | 2780 bcf win_invert ; Reset invert flag |
2778 call TFT_standard_color | 2781 call TFT_standard_color |
2779 | 2782 |
2780 movlw softwareversion_beta ; =1: Beta, =0: Release | 2783 movlw softwareversion_beta ; =1: Beta, =0: Release |
2781 decfsz WREG,F | 2784 decfsz WREG,F |
2782 return ; Release version -> Return | 2785 return ; Release version -> Return |
2796 extern tFirmware | 2799 extern tFirmware |
2797 info_menu_firmware: | 2800 info_menu_firmware: |
2798 lfsr FSR1,tFirmware | 2801 lfsr FSR1,tFirmware |
2799 call strcat_text | 2802 call strcat_text |
2800 rcall TFT_cat_firmware | 2803 rcall TFT_cat_firmware |
2801 WIN_INVERT 0 | 2804 bcf win_invert ; Reset invert flag |
2802 return | 2805 return |
2803 | 2806 |
2804 global TFT_cat_firmware | 2807 global TFT_cat_firmware |
2805 TFT_cat_firmware: | 2808 TFT_cat_firmware: |
2806 movlw softwareversion_x | 2809 movlw softwareversion_x |
2824 return | 2827 return |
2825 | 2828 |
2826 ; Show in "change firmware" style | 2829 ; Show in "change firmware" style |
2827 movlw color_yellow | 2830 movlw color_yellow |
2828 call TFT_set_color | 2831 call TFT_set_color |
2829 WIN_INVERT 1 | 2832 bsf win_invert ; Set invert flag |
2830 return | 2833 return |
2831 | 2834 |
2832 ;----------------------------------------------------------------------------- | 2835 ;----------------------------------------------------------------------------- |
2833 ; For the Information menu: append serial number ostc3#42. | 2836 ; For the Information menu: append serial number ostc3#42. |
2834 global info_menu_serial | 2837 global info_menu_serial |