Skip to content

Commit

Permalink
Changed Encoder encode to update and added hasChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandromrc authored Nov 19, 2022
1 parent 8a707ed commit ac42373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ class Encoder {
{
encoderValue = 0;
}
void encode(uint gpio)
void update(uint gpio)
{
if ((gpio == upper_pin) || (gpio == lower_pin)) {
int MSB = digitalRead(upper_pin);
Expand Down

0 comments on commit ac42373

Please sign in to comment.