comparison src/ghostwriter.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 06e9370c6d75
children b7eb98dbd800
comparison
equal deleted inserted replaced
534:a7ac5d3fd046 535:cf68fe0c3002
1030 ; Add more here... 1030 ; Add more here...
1031 return 1031 return
1032 1032
1033 global do_logoffset_common_write 1033 global do_logoffset_common_write
1034 do_logoffset_common_write: 1034 do_logoffset_common_write:
1035 ; TODO: limit [lo:hi] to 9999 ? may arrive here as >= 10000 because of +10 increment option
1036 ; SIMPLER WAY: return without writing to eeprom if hi == 0x27 -> 0x2700 = 9984, this is within
1037 ; the save range for a +10 increment, shall do it...
1038 ; mH
1039
1035 movff lo,EEDATA 1040 movff lo,EEDATA
1036 write_int_eeprom 0x0D 1041 write_int_eeprom 0x0D
1037 movff hi,EEDATA 1042 movff hi,EEDATA
1038 write_int_eeprom 0x0E 1043 write_int_eeprom 0x0E
1039 return 1044 return