Mercurial > public > hwos_code
comparison src/start.asm @ 220:effd7259f5a5
make button sensitivity configurable (cR hardware)
author | heinrichsweikamp |
---|---|
date | Mon, 05 Jan 2015 14:41:23 +0100 |
parents | 8636efc5c6c5 |
children | 5a4801918be9 |
comparison
equal
deleted
inserted
replaced
219:4b2622e0fd50 | 220:effd7259f5a5 |
---|---|
56 ; Air pressure compensation after reset | 56 ; Air pressure compensation after reset |
57 call get_calibration_data ; Get calibration data from pressure sensor | 57 call get_calibration_data ; Get calibration data from pressure sensor |
58 banksel common ; get_calibration_data uses isr_backup | 58 banksel common ; get_calibration_data uses isr_backup |
59 bcf no_sensor_int ; normal sensor interrupt mode | 59 bcf no_sensor_int ; normal sensor interrupt mode |
60 | 60 |
61 call piezo_config | |
62 call TFT_DisplayOff ; display off | 61 call TFT_DisplayOff ; display off |
63 bsf LEDr ; Status LED | 62 bsf LEDr ; Status LED |
64 bcf pressure_refresh | 63 bcf pressure_refresh |
65 ; First pass will not have valid temperature! | 64 ; First pass will not have valid temperature! |
66 btfss pressure_refresh ; Air pressure compensation | 65 btfss pressure_refresh ; Air pressure compensation |
238 extern option_save_all, option_check_all | 237 extern option_save_all, option_check_all |
239 | 238 |
240 btfsc menubit ; Return from Menu/COMM mode or timeout? | 239 btfsc menubit ; Return from Menu/COMM mode or timeout? |
241 call option_save_all ; Yes, save all settings into EEPROM | 240 call option_save_all ; Yes, save all settings into EEPROM |
242 | 241 |
242 call option_restore_all ; Restore everything from EEPROM | |
243 call option_check_all ; Check all options (and reset if not within their min/max boundaries) | 243 call option_check_all ; Check all options (and reset if not within their min/max boundaries) |
244 call option_save_all ; Save all settings into EEPROM after they have been checked | |
244 | 245 |
245 clrf flag1 ; clear all flags | 246 clrf flag1 ; clear all flags |
246 clrf flag2 | 247 clrf flag2 |
247 clrf flag3 | 248 clrf flag3 |
248 clrf flag4 | 249 clrf flag4 |