diff --git a/EncoderMod.h b/EncoderMod.h old mode 100755 new mode 100644 index 7ebca4a..d53f9a7 --- a/EncoderMod.h +++ b/EncoderMod.h @@ -100,7 +100,7 @@ class Encoder encoder.rate = 0; encoder.rate1 = 0; encoder.rate2 = 0; - lastRateTimer = 0; + encoder.lastRateTimer = 0; if (DIRECT_PIN_READ(encoder.pin1_register, encoder.pin1_bitmask)) s |= 1; if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2; encoder.state = s; diff --git a/keywords.txt b/keywords.txt index dd08148..7a62895 100644 --- a/keywords.txt +++ b/keywords.txt @@ -1,7 +1,7 @@ ENCODER_USE_INTERRUPTS LITERAL1 ENCODER_OPTIMIZE_INTERRUPTS LITERAL1 ENCODER_DO_NOT_USE_INTERRUPTS LITERAL1 -Encoder KEYWORD1 +EncoderMod KEYWORD1 read KEYWORD2 write KEYWORDD2 stepRate KEYWORD2 diff --git a/library.json b/library.json index 9b358b4..07fee2a 100644 --- a/library.json +++ b/library.json @@ -5,7 +5,7 @@ "repository": { "type": "git", - "url": "https://github.com/QuentinTorg/Encoder" + "url": "https://github.com/QuentinTorg/EncoderMod" }, "frameworks": "arduino", "platforms": diff --git a/library.properties b/library.properties index 18062fc..4fdb244 100644 --- a/library.properties +++ b/library.properties @@ -1,4 +1,4 @@ -name=Encoder +name=EncoderMod version=1.3 author=Paul Stoffregen maintainer=Paul Stoffregen