diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-10-12 12:06:37 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-10-12 12:06:37 +1100 |
| commit | 3726fb750a3f92e1bc9dc25995b8c52bfb5a5d5a (patch) | |
| tree | 69bc7ca858663d10282c1d4cbb5513b70457ded9 /main/battery.cpp | |
| parent | efd5392f6cf2149369d7d3170400bbe8f2d5c82e (diff) | |
| download | tangara-fw-3726fb750a3f92e1bc9dc25995b8c52bfb5a5d5a.tar.gz | |
standardise on formatting
Diffstat (limited to 'main/battery.cpp')
| -rw-r--r-- | main/battery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/battery.cpp b/main/battery.cpp index 179a6439..d175ab67 100644 --- a/main/battery.cpp +++ b/main/battery.cpp @@ -11,8 +11,8 @@ static esp_adc_cal_characteristics_t calibration; esp_err_t init_adc(void) { // Calibration should already be fused into the chip from the factory, so // we should only need to read it back out again. - esp_adc_cal_characterize( - ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, 0, &calibration); + esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, 0, + &calibration); // Max battery voltage should be a little over 2V due to our divider, so // we need the max attenuation to properly handle the full range. @@ -28,4 +28,4 @@ uint32_t read_battery_voltage(void) { return esp_adc_cal_raw_to_voltage(raw, &calibration); } -} // namespace gay_ipod +} // namespace gay_ipod |
