Skip to content

Commit

Permalink
Change deprecated ADC attenuation parameter
Browse files Browse the repository at this point in the history
From 11dB to 12dB. Resolves compiler warning. Allegly, no impact on function: `This is deprecated, it behaves the same as `ADC_ATTEN_DB_12`
  • Loading branch information
todd-herbert committed Jul 6, 2024
1 parent 3eb3de9 commit 5fa5b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion variants/heltec_wireless_paper/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define ADC_CHANNEL ADC2_GPIO20_CHANNEL
#define ADC_MULTIPLIER 2 // Voltage divider is roughly 1:1
#define BAT_MEASURE_ADC_UNIT 2 // Use ADC2
#define ADC_ATTENUATION ADC_ATTEN_DB_11 // Voltage divider output is quite high
#define ADC_ATTENUATION ADC_ATTEN_DB_12 // Voltage divider output is quite high

// LoRa
#define USE_SX1262
Expand Down
2 changes: 1 addition & 1 deletion variants/heltec_wireless_paper_v1/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define ADC_CHANNEL ADC2_GPIO20_CHANNEL
#define ADC_MULTIPLIER 2 // Voltage divider is roughly 1:1
#define BAT_MEASURE_ADC_UNIT 2 // Use ADC2
#define ADC_ATTENUATION ADC_ATTEN_DB_11 // Voltage divider output is quite high
#define ADC_ATTENUATION ADC_ATTEN_DB_12 // Voltage divider output is quite high

// LoRa
#define USE_SX1262
Expand Down

0 comments on commit 5fa5b81

Please sign in to comment.