Skip to content

Commit 944a90e

Browse files
Fix ESP32Encoder API - use UP instead of puType::UP
Co-authored-by: simonachmueller <3511513+simonachmueller@users.noreply.github.com>
1 parent f8f7bbd commit 944a90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void SetupEncoder()
194194
{
195195
delay(1);
196196
// Enable the weak pull down resistors
197-
ESP32Encoder::useInternalWeakPullResistors=puType::UP;
197+
ESP32Encoder::useInternalWeakPullResistors=UP;
198198
// set starting count value
199199
encoder.clearCount();
200200
// Attach pins for use as encoder pins

0 commit comments

Comments
 (0)