Skip to content

Commit 04e105e

Browse files
authored
Merge pull request #372 from soburi/analogres_decl
cores: arduino: Improve analog(Read|Write)Rsolution declaration
2 parents 1283290 + a047a9a commit 04e105e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/Arduino.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ int digitalPinToInterrupt(pin_size_t pin);
134134
#define portOutputRegister(x) (x)
135135
#define portInputRegister(x) (x)
136136

137-
void analogReadResolution(int bits);
137+
#if defined(CONFIG_PWM) || defined(CONFIG_DAC)
138138
void analogWriteResolution(int bits);
139+
#endif
139140

140141
#include <variant.h>
141142

0 commit comments

Comments
 (0)