Mercurial > public > hwos_code
diff src/isr.asm @ 448:aadfe9f2edaf
work on new battery options
author | heinrichsweikamp |
---|---|
date | Tue, 30 Aug 2016 17:26:21 +0200 |
parents | d3087a8ed7e1 |
children | 66049b6f2c0b |
line wrap: on
line diff
--- a/src/isr.asm Mon Aug 29 16:26:50 2016 +0200 +++ b/src/isr.asm Tue Aug 30 17:26:21 2016 +0200 @@ -327,6 +327,20 @@ cpfseq CCPR1L ; = current PWM value? rcall isr_dimm_tft ; No, adjust until max_CCPR1L=CCPR1L ! + banksel common + call get_analog_switches ; Get analog readings + btfss INTCON3,INT1IE + bra isr_tmr7_a + btfsc analog_sw2_pressed + rcall isr_switch_left +isr_tmr7_a: + banksel common + btfss INTCON,INT0IE + bra isr_tmr7_b + btfsc analog_sw1_pressed + rcall isr_switch_right +isr_tmr7_b: + banksel isr_backup decfsz ir_S8_timeout,F ; IR Data still valid? bra isr_tmr7_2 ; Yes, continue