From 220a287467764cc11d3f0f58a038af8d459f4403 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Sun, 6 Oct 2019 13:01:12 -0400 Subject: [PATCH] Made changed() public instead of protected --- src/Bounce2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bounce2.h b/src/Bounce2.h index a48f7e9..a8ee6d6 100644 --- a/src/Bounce2.h +++ b/src/Bounce2.h @@ -195,7 +195,7 @@ class Bounce inline void toggleStateFlag(const uint8_t flag) {state ^= flag;} inline bool getStateFlag(const uint8_t flag) {return((state & flag) != 0);} - protected: + public: bool Bounce::changed( ) { return getStateFlag(CHANGED_STATE); } };