Skip to content

Commit 7d3dbd8

Browse files
author
Richard Unger
committed
make compatible with Nano ESP32 platform
1 parent a163d14 commit 7d3dbd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/drivers/hardware_specific/generic_mcu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
12
#include "../hardware_api.h"
23

34
// if the mcu doen't have defiend analogWrite
4-
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32)
5+
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && !defined(analogWrite)
56
__attribute__((weak)) void analogWrite(uint8_t pin, int value){ };
67
#endif
78

0 commit comments

Comments
 (0)