From d62e37e033c7499a726f7137eb0c50982d92973b Mon Sep 17 00:00:00 2001 From: Adam Wonak Date: Sun, 15 Jun 2025 19:40:51 -0700 Subject: [PATCH] minor edits --- examples/Gravity/save_state.h | 1 - gravity.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {