Skip to content

Commit 0a38742

Browse files
committed
ADC_ATTEN_DB_12 is only defined in some versions? #198
1 parent 29fa442 commit 0a38742

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

microcontroller-src/kv4p_ht_esp32_wroom_32/kv4p_ht_esp32_wroom_32.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ int fadeDirection = 0; // 0: no fade, 1: fade in, -1: fade out
124124
int attenuation = ATTENUATION_MAX; // Full volume
125125
bool lastSquelched = false;
126126

127+
// 11dB vs 12dB is a ...version thing?
128+
#ifndef ADC_ATTEN_DB_12
129+
#define ADC_ATTEN_DB_12 ADC_ATTEN_DB_11
130+
#endif
127131

128132
////////////////////////////////////////////////////////////////////////////////
129133
/// Forward Declarations

0 commit comments

Comments
 (0)