Mercurial > public > hwos_code
comparison src/divemode.asm @ 541:ad7dc231c180
2.23beta release
author | heinrichsweikamp |
---|---|
date | Fri, 01 Sep 2017 13:18:38 +0200 |
parents | d36f9fca10ae |
children | a92cecf8cee4 |
comparison
equal
deleted
inserted
replaced
540:9a17b1db095b | 541:ad7dc231c180 |
---|---|
709 | 709 |
710 update_temp_and_or_depth: ; New sensor data arrived... | 710 update_temp_and_or_depth: ; New sensor data arrived... |
711 btfsc temp_changed | 711 btfsc temp_changed |
712 call TFT_temp_divemode ; Displays temperature | 712 call TFT_temp_divemode ; Displays temperature |
713 | 713 |
714 btfsc pressure_refresh | 714 ; btfsc pressure_refresh |
715 call TFT_depth ; Displays new depth | 715 call TFT_depth ; Displays new depth |
716 | 716 |
717 rcall set_max_depth ; update max. depth if required | 717 rcall set_max_depth ; update max. depth if required |
718 bcf pressure_refresh ; until new pressure is available | 718 bcf pressure_refresh ; until new pressure is available |
719 return | 719 return |
720 | 720 |
721 update_divemode60: ; update any minute | 721 update_divemode60: ; update any minute |
722 call get_battery_voltage ; gets battery voltage | 722 call get_battery_voltage ; gets battery voltage |
723 rcall set_powersafe ; Battery low? | 723 rcall set_powersafe ; Battery low? |
724 call TFT_max_pressure ; Update max. depth | |
725 call customview_minute ; Do every-minute tasks for the custom view area | 724 call customview_minute ; Do every-minute tasks for the custom view area |
726 bcf oneminupdate | 725 bcf oneminupdate |
727 | 726 |
728 btfss simulatormode_active ; in simulator mode? | 727 btfss simulatormode_active ; in simulator mode? |
729 return ; No | 728 return ; No |