Skip to content

Commit

Permalink
Adding the static to the public members
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Oct 16, 2018
1 parent 15c5df8 commit e95adba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=ESP32Encoder
version=0.0.1
version=0.0.2
author=Kevin Harrington
maintainer=Kevin Harrington <mad.hephaestus@gmail.com>
sentence=Encoder library for the ESP32 using interrupts.
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32Encoder.h
Expand Up @@ -9,7 +9,6 @@ class ESP32Encoder {
int aPinNumber;
int bPinNumber;
int64_t count=0;
static ESP32Encoder *encoders[MAX_ESP32_ENCODERS];
public:
ESP32Encoder();
~ESP32Encoder();
Expand All @@ -20,5 +19,7 @@ class ESP32Encoder {
void interruptB();
boolean isAttached(){return attached;}
void setCount(int64_t value);
static ESP32Encoder *encoders[MAX_ESP32_ENCODERS];


};

0 comments on commit e95adba

Please sign in to comment.