diff --git a/examples/Gravity/save_state.h b/examples/Gravity/save_state.h index d6345ac..23032e2 100644 --- a/examples/Gravity/save_state.h +++ b/examples/Gravity/save_state.h @@ -58,7 +58,6 @@ class StateManager { bool _isDirty; unsigned long _lastChangeTime; static const unsigned long SAVE_DELAY_MS = 2000; - }; #endif // SAVE_STATE_H \ No newline at end of file diff --git a/gravity.cpp b/gravity.cpp index 4236b37..3d287a9 100644 --- a/gravity.cpp +++ b/gravity.cpp @@ -11,7 +11,8 @@ #include "gravity.h" -// Initialize the static pointer for the EncoderDir class to null. +// Initialize the static pointer for the EncoderDir class to null. We want to +// have a static pointer to decouple the ISR from the global gravity object. EncoderDir* EncoderDir::_instance = nullptr; void Gravity::Init() {