diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-03-30 09:31:08 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-03-30 09:31:08 +1100 |
| commit | a0ae39befe11c2a5a78ee5877cd5dd9cda90e27c (patch) | |
| tree | 21d51e8929d3c6fa9ffa4bf78da0eacb5c0c27a2 /src/drivers/battery.cpp | |
| parent | 53ad4fc3f260ea7de56d1bce24e284b48c0e856b (diff) | |
| download | tangara-fw-a0ae39befe11c2a5a78ee5877cd5dd9cda90e27c.tar.gz | |
Update pinouts for R3
Diffstat (limited to 'src/drivers/battery.cpp')
| -rw-r--r-- | src/drivers/battery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/battery.cpp b/src/drivers/battery.cpp index 00e7796a..8d747c07 100644 --- a/src/drivers/battery.cpp +++ b/src/drivers/battery.cpp @@ -13,8 +13,8 @@ static const adc_unit_t kAdcUnit = ADC_UNIT_1; // 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. static const adc_atten_t kAdcAttenuation = ADC_ATTEN_DB_11; -// Corresponds to GPIO 34. -static const adc_channel_t kAdcChannel = ADC_CHANNEL_6; +// Corresponds to SENSOR_VP. +static const adc_channel_t kAdcChannel = ADC_CHANNEL_0; Battery::Battery() { adc_oneshot_unit_init_cfg_t unit_config = { |
