Mercurial > public > hwos_code
comparison src/logbook.asm @ 601:08a0162d3ca1
Fix false CNS readings in logbook
author | heinrichsweikamp |
---|---|
date | Tue, 14 Aug 2018 11:01:47 +0200 |
parents | b455b31ce022 |
children | ca4556fb60b9 |
comparison
equal
deleted
inserted
replaced
600:cb59872ad53d | 601:08a0162d3ca1 |
---|---|
1653 STRCPY_TEXT tCNS2 | 1653 STRCPY_TEXT tCNS2 |
1654 call ext_flash_byte_read_plus ; read cns low | 1654 call ext_flash_byte_read_plus ; read cns low |
1655 movff ext_flash_rw,lo | 1655 movff ext_flash_rw,lo |
1656 call ext_flash_byte_read_plus ; read cns high | 1656 call ext_flash_byte_read_plus ; read cns high |
1657 movff ext_flash_rw,hi | 1657 movff ext_flash_rw,hi |
1658 bcf hi,int_warning_flag ; clear warning flag (fix for cases were the flags already got stored to ext. Flash) | |
1659 bcf hi,int_attention_flag ; clear attention flag (fix for cases were the flags already got stored to ext. Flash) | |
1658 output_16 | 1660 output_16 |
1659 LOG_POINT_TO log_cns_end | 1661 LOG_POINT_TO log_cns_end |
1660 STRCAT "->" | 1662 STRCAT "->" |
1661 call ext_flash_byte_read_plus ; read CNS low | 1663 call ext_flash_byte_read_plus ; read CNS low |
1662 movff ext_flash_rw,lo | 1664 movff ext_flash_rw,lo |
1663 call ext_flash_byte_read_plus ; read CNS high | 1665 call ext_flash_byte_read_plus ; read CNS high |
1666 bcf hi,int_warning_flag ; clear warning flag (fix for cases were the flags already got stored to ext. Flash) | |
1667 bcf hi,int_attention_flag ; clear attention flag (fix for cases were the flags already got stored to ext. Flash) | |
1664 movff ext_flash_rw,hi | 1668 movff ext_flash_rw,hi |
1665 output_16 | 1669 output_16 |
1666 STRCAT_PRINT "%" | 1670 STRCAT_PRINT "%" |
1667 | 1671 |
1668 ; Salinity | 1672 ; Salinity |