]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix: enable digital input for PF5
authortmk <hasu@tmk-kbd.com>
Tue, 2 Dec 2014 17:17:54 +0000 (02:17 +0900)
committertmk <hasu@tmk-kbd.com>
Thu, 15 Jan 2015 08:08:48 +0000 (17:08 +0900)
keyboard/hhkb_rn42/rn42/battery.c

index 3ecde522342180e7c4c107eba34879edad9e2292..34aa18446c48c04f7e83dde948474ce28203e096 100644 (file)
@@ -21,7 +21,7 @@ void battery_init(void)
     ADMUX = (1<<REFS1) | (1<<REFS0);
     ADCSRA = (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0);
     // digital input buffer disable(24.9.5)
-    DIDR0 = (1<<ADC0D) | (1<<ADC4D) | (1<<ADC5D) | (1<<ADC7D);
+    DIDR0 = (1<<ADC0D) | (1<<ADC4D) | (1<<ADC7D);
     DIDR1 = (1<<AIN0D);
     DIDR2 = (1<<ADC8D) | (1<<ADC9D) | (1<<ADC11D) | (1<<ADC12D) | (1<<ADC13D);