OSDN Git Service

[ADC][Battery] Fix stability, but still not collect.
[openi2cradio/OpenI2CRadio.git] / iodef.h
diff --git a/iodef.h b/iodef.h
index 6935d98..2aecfa1 100644 (file)
--- a/iodef.h
+++ b/iodef.h
@@ -122,8 +122,8 @@ extern "C" {
 
 #define TRIS_E_VAL   0b00000100 /* FOR OUTPUT, ADC, PSP=OFF */
 
-#define _BATT_ADC AN7
-#define _REF_ADC 0x0f
+#define _BATT_ADC 0x07
+#define _REF_ADC 0x10
 #define _ADC_INITF ANS7
 #define _ADCH_INITF 0x00