Fix indentation once again

please use the pre-commit script to solve indentation
pull/68/head
D.R.racer 2021-07-19 06:25:09 +02:00
parent 532f2fadb0
commit 9d2f8b2b39
1 changed files with 5 additions and 4 deletions

View File

@ -6,11 +6,11 @@ namespace adc {
void Init() {
ADCSRA |= (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0);
ADMUX |= (1 << REFS0);
ADMUX |= (1 << REFS0);
ADCSRA |= (1 << ADEN);
}
uint16_t ReadADC(uint8_t channel) {
uint16_t ReadADC(uint8_t channel) {
uint8_t admux = ADMUX;
admux &= ~0x1F;
admux |= channel & 0x07;
@ -22,10 +22,11 @@ uint16_t ReadADC(uint8_t channel) {
ADCSRB = adcsrb;
ADCSRA |= (1 << ADSC);
while (ADCSRA & (1 << ADSC));
while (ADCSRA & (1 << ADSC))
;
return ADC;
}
}
} // namespace adc
} // namespace hal