From 9a32ae987941c1f3e5cb4789db1319f8127b84b4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 9 Dec 2017 11:15:04 +0100 Subject: [PATCH] Renamed a few private members to follow the style guide Signed-off-by: Gergely Nagy --- src/Kaleidoscope/MyOldFriend.cpp | 18 +++++++++--------- src/Kaleidoscope/MyOldFriend.h | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Kaleidoscope/MyOldFriend.cpp b/src/Kaleidoscope/MyOldFriend.cpp index 589fef4e..1cf422b7 100644 --- a/src/Kaleidoscope/MyOldFriend.cpp +++ b/src/Kaleidoscope/MyOldFriend.cpp @@ -27,8 +27,8 @@ extern u8 _usbSuspendState; namespace kaleidoscope { -bool MyOldFriend::wasSuspended = false; -bool MyOldFriend::initialSuspend = true; +bool MyOldFriend::was_suspended_ = false; +bool MyOldFriend::initial_suspend_ = true; void MyOldFriend::begin(void) { Kaleidoscope.useLoopHook(loopHook); @@ -57,19 +57,19 @@ void MyOldFriend::loopHook(bool post_clear) { return; if ((_usbSuspendState & (1 << SUSPI))) { - if (!initialSuspend) { - if (!wasSuspended) { - wasSuspended = true; + if (!initial_suspend_) { + if (!was_suspended_) { + was_suspended_ = true; myOldFriendEventHandler(Suspend); } else { myOldFriendEventHandler(Sleep); } } } else { - if (initialSuspend) - initialSuspend = false; - if (wasSuspended) { - wasSuspended = false; + if (initial_suspend_) + initial_suspend_ = false; + if (was_suspended_) { + was_suspended_ = false; myOldFriendEventHandler(Resume); } } diff --git a/src/Kaleidoscope/MyOldFriend.h b/src/Kaleidoscope/MyOldFriend.h index cc4928a5..e49a7aaf 100644 --- a/src/Kaleidoscope/MyOldFriend.h +++ b/src/Kaleidoscope/MyOldFriend.h @@ -36,8 +36,8 @@ class MyOldFriend : public KaleidoscopePlugin { void toggleLEDs(Event event); private: - static bool wasSuspended; - static bool initialSuspend; + static bool was_suspended_; + static bool initial_suspend_; static void loopHook(bool post_clear); };