Mercurial > public > hwos_code
comparison src/surfmode.asm @ 535:cf68fe0c3002
NEW: Show a warning for each sensor if the sensor is end-of-life after calibration (Less then 8mV in Air at sea level)
author | heinrichsweikamp |
---|---|
date | Tue, 22 Aug 2017 13:23:52 +0200 |
parents | d36f9fca10ae |
children | b7eb98dbd800 |
comparison
equal
deleted
inserted
replaced
534:a7ac5d3fd046 | 535:cf68fe0c3002 |
---|---|
233 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 233 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
234 sublw .1 ; opt_ccr_mode = 1 (Sensor)? | 234 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
235 bnz surfloop_loop2a ; No, skip | 235 bnz surfloop_loop2a ; No, skip |
236 | 236 |
237 call TFT_surface_sensor ; ...update sensor data in surface mode | 237 call TFT_surface_sensor ; ...update sensor data in surface mode |
238 call TFT_sensor_surface_warning ; Show a warning arrow-down behind sensor readings when sensor is end-of-life | |
238 movlw .9 | 239 movlw .9 |
239 cpfseq menupos3 ; in Sensor mV surface custom view? | 240 cpfseq menupos3 ; in Sensor mV surface custom view? |
240 bra surfloop_loop2a ; No | 241 bra surfloop_loop2a ; No |
241 extern TFT_sensor_mV | 242 extern TFT_sensor_mV |
242 call TFT_sensor_mV ; Yes, update mV readings (Each 1/4 second and not each second as in customview.asm) | 243 call TFT_sensor_mV ; Yes, update mV readings (Each 1/4 second and not each second as in customview.asm) |