Testing #55

Merged
thomasfredericks merged 2 commits from Testing into master 2019-11-07 17:30:32 +03:00
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ bool Bounce::update()
#endif
return getStateFlag(CHANGED_STATE);
return changed();
}
+4
View File
@@ -194,6 +194,10 @@ class Bounce
inline void unsetStateFlag(const uint8_t flag) {state &= ~flag;}
inline void toggleStateFlag(const uint8_t flag) {state ^= flag;}
inline bool getStateFlag(const uint8_t flag) {return((state & flag) != 0);}
public:
bool Bounce::changed( ) { return getStateFlag(CHANGED_STATE); }
};
#endif