diff options
Diffstat (limited to 'keyboard/hhkb_rn42')
-rw-r--r-- | keyboard/hhkb_rn42/rn42/battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keyboard/hhkb_rn42/rn42/battery.c b/keyboard/hhkb_rn42/rn42/battery.c index 34aa18446c..7e868c9646 100644 --- a/keyboard/hhkb_rn42/rn42/battery.c +++ b/keyboard/hhkb_rn42/rn42/battery.c @@ -92,6 +92,7 @@ uint16_t battery_voltage(void) volatile uint16_t bat; ADCSRA |= (1<<ADEN); + _delay_ms(1); // wait for charging S/H capacitance ADCSRA |= (1<<ADSC); while (ADCSRA & (1<<ADSC)) ; |