diff src/adc_lightsensor.asm @ 626:be8787f2034d

compass3 support for 3.01 branch
author heinrichsweikamp
date Sun, 23 Jun 2019 15:21:16 +0200
parents b87f23fae743
children
line wrap: on
line diff
--- a/src/adc_lightsensor.asm	Sun Jun 23 13:29:17 2019 +0200
+++ b/src/adc_lightsensor.asm	Sun Jun 23 15:21:16 2019 +0200
@@ -546,7 +546,8 @@
 get_analog_switches2:
 	btfsc	adc_running						; ADC in use?
 	return									; YES - abort
-											; NO
+	btfsc	cc_active						; Charging?
+	return								; YES - abort
 	movlw	b'00001001'						; left justified
 	movwf	ADCON2
 ;	movlw	b'00000000'						; Vref+ = Vdd