From 7109b17307c0bd2bdcfc1feae0922c8f5a015f8d Mon Sep 17 00:00:00 2001 From: Ryan Matthews Date: Thu, 17 Dec 2015 00:50:17 -0500 Subject: [PATCH] Fix a compilation error, rename the library to EncoderMod I only modified one line in EncoderMod.h to get it to compile. I renamed a couple instances of the word "Encoder" to the word "EncoderMod" so that the library shows up as EncoderMod in the Arduino IDE. --- EncoderMod.h | 2 +- keywords.txt | 2 +- library.json | 2 +- library.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 EncoderMod.h 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