Skip to content

Commit f8f7bbd

Browse files
Fix ESP32Encoder API compatibility for version 0.11
Co-authored-by: simonachmueller <3511513+simonachmueller@users.noreply.github.com>
1 parent 87d0d25 commit f8f7bbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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=UP;
197+
ESP32Encoder::useInternalWeakPullResistors=puType::UP;
198198
// set starting count value
199199
encoder.clearCount();
200200
// Attach pins for use as encoder pins

0 commit comments

Comments
 (0)