Skip to content

Commit

Permalink
Set ADC_UNIT_1 attenuation to 11dB
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkoziej committed Feb 23, 2024
1 parent 178a388 commit 7c29c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbw/node_fw/mod/brake/brake.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ static void adc_init(void)

adc_digi_pattern_config_t adc_pattern[ADC_CHANNELS] = {
[CS_ADC_CHANNEL_INDEX] = {
.atten = ADC_ATTEN_DB_2_5,
.atten = ADC_ATTEN_DB_11,
.bit_width = SOC_ADC_DIGI_MAX_BITWIDTH,
.channel = CS_ADC_CHANNEL,
.unit = ADC_UNIT_1,
},
[PS_ADC_CHANNEL_INDEX] = {
.atten = ADC_ATTEN_DB_2_5,
.atten = ADC_ATTEN_DB_11,
.bit_width = SOC_ADC_DIGI_MAX_BITWIDTH,
.channel = PS_ADC_CHANNEL,
.unit = ADC_UNIT_1,
Expand Down

0 comments on commit 7c29c5d

Please sign in to comment.