Fixed Declaration

This commit is contained in:
ElectronicsArchiver
2022-05-25 22:15:22 -04:00
parent 5b0eea1f2d
commit e95b40b776
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,13 +69,13 @@ private:
// Note : this is private as it migh change in the futur
private:
inline void updateTime();
inline void changeState();
inline void setStateFlag(const uint8_t flag) {state |= flag;}
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) const {return((state & flag) != 0);}
inline bool thresholdPassed() const;
inline void updateTime() const;
inline bool isDebouncing(const bool state) const;
inline bool isUnstable(const bool state) const;
+1 -1
View File
@@ -210,7 +210,7 @@ inline bool Debouncer::thresholdPassed() const {
return millis() - previous_millis >= interval_millis;
}
inline void Debouncer::updateTime() const {
inline void Debouncer::updateTime(){
previous_millis = millis();
}