Skip to content

Commit

Permalink
Update adc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs authored Apr 13, 2024
1 parent 37ce9a5 commit 05e6326
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/adc/adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ getVoltage(uint8_t pin, uint8_t samples, float div)
voltage_raw += float(analogReadMilliVolts(PIN_ADC_IN));
#else
voltage_raw += float(analogRead(PIN_ADC_IN)) / 4095.0 * 3300;
#pragma message("Doh!")
#endif
}
uint16_t voltage = int(voltage_raw / UBATT_SAMPLES / UBATT_DIV);
Expand Down

0 comments on commit 05e6326

Please sign in to comment.