summaryrefslogtreecommitdiff
path: root/src/drivers/adc.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-04-22 09:48:21 +1000
committerailurux <ailuruxx@gmail.com>2024-04-22 09:48:21 +1000
commit4eb1a074f7c7dc7e43789400bea5e6357e4546f5 (patch)
treea93e29b51e5c902329d28a7b2064e0ffdcee9887 /src/drivers/adc.cpp
parentdfccf56f34484b3e9efcb48b240abdb22c577281 (diff)
parent5b99267cb9f0344e519956096867aea5468ecf9f (diff)
downloadtangara-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.cpp2
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;