Skip to content

Commit 745c140

Browse files
committed
rg_input: Added back the warning silencer for ADC_ATTEN_DB_11
I don't want to change to the new ADC_ATTEN_DB_12, all targets would need to be updated.
1 parent a6dbbff commit 745c140

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/retro-go/rg_input.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ static adc_cali_handle_t adc_cali_handles[4];
2020
#include <esp_adc_cal.h>
2121
static esp_adc_cal_characteristics_t adc_chars;
2222
#endif
23+
// This is a lazy way to silence deprecation notices on esp-idf 5.2+ stating
24+
// that ADC_ATTEN_DB_12 should be used instead (which is the same value)
25+
#define ADC_ATTEN_DB_11 3 /* ADC_ATTEN_DB_12 */
2326
#else
2427
#include <SDL2/SDL.h>
2528
#endif

0 commit comments

Comments
 (0)