Skip to content

Commit 760c4a7

Browse files
committed
#197 dac check improvement, use has include
1 parent cb9f59d commit 760c4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/esp32/ESP32AnalogDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "ESP32AnalogDevice.h"
1111
#include "IoLogging.h"
1212
#include <SimpleCollections.h>
13-
#ifndef CONFIG_IDF_TARGET_ESP32S3
13+
#if __has_include(<driver/dac.h>)
1414
#include <driver/dac.h>
1515
#define ESP_HAS_DAC
1616
#else

0 commit comments

Comments
 (0)