diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-04-22 09:48:21 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-04-22 09:48:21 +1000 |
| commit | 4eb1a074f7c7dc7e43789400bea5e6357e4546f5 (patch) | |
| tree | a93e29b51e5c902329d28a7b2064e0ffdcee9887 /src/drivers/adc.cpp | |
| parent | dfccf56f34484b3e9efcb48b240abdb22c577281 (diff) | |
| parent | 5b99267cb9f0344e519956096867aea5468ecf9f (diff) | |
| download | tangara-fw-4eb1a074f7c7dc7e43789400bea5e6357e4546f5.tar.gz | |
Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw
Diffstat (limited to 'src/drivers/adc.cpp')
| -rw-r--r-- | src/drivers/adc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/adc.cpp b/src/drivers/adc.cpp index 56d2cbb4..3379a1ae 100644 --- a/src/drivers/adc.cpp +++ b/src/drivers/adc.cpp @@ -18,7 +18,7 @@ static const adc_bitwidth_t kAdcBitWidth = ADC_BITWIDTH_12; 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; +static const adc_atten_t kAdcAttenuation = ADC_ATTEN_DB_12; // Corresponds to SENSOR_VP. static const adc_channel_t kAdcChannel = ADC_CHANNEL_0; |
