From 580953a39a609a098534d25ca2457fd46a3771ae Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 13 Aug 2017 15:43:34 -0700 Subject: [PATCH] astyle --- src/Kaleidoscope-LEDEffect-BootGreeting.cpp | 36 ++++++++++----------- src/Kaleidoscope-LEDEffect-BootGreeting.h | 16 ++++----- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/Kaleidoscope-LEDEffect-BootGreeting.cpp b/src/Kaleidoscope-LEDEffect-BootGreeting.cpp index 386058c8..2b3ff973 100644 --- a/src/Kaleidoscope-LEDEffect-BootGreeting.cpp +++ b/src/Kaleidoscope-LEDEffect-BootGreeting.cpp @@ -21,32 +21,32 @@ namespace kaleidoscope { - bool BootGreetingEffect::done_; +bool BootGreetingEffect::done_; - void BootGreetingEffect::begin (void) { - Kaleidoscope.useLoopHook(loopHook); - } +void BootGreetingEffect::begin(void) { + Kaleidoscope.useLoopHook(loopHook); +} - void BootGreetingEffect::loopHook(const bool post_clear) { - if (!post_clear || done_) - return; +void BootGreetingEffect::loopHook(const bool post_clear) { + if (!post_clear || done_) + return; - if (millis() > 10000) { - done_ = true; - return; - } + if (millis() > 10000) { + done_ = true; + return; + } - for (uint8_t r = 0; r < ROWS; r++) { - for (uint8_t c = 0; c < COLS; c++) { - Key k = Layer.lookupOnActiveLayer(r, c); + for (uint8_t r = 0; r < ROWS; r++) { + for (uint8_t c = 0; c < COLS; c++) { + Key k = Layer.lookupOnActiveLayer(r, c); - if (k == Key_LEDEffectNext) { - cRGB color = breath_compute(); - LEDControl.setCrgbAt(r, c, color); - } + if (k == Key_LEDEffectNext) { + cRGB color = breath_compute(); + LEDControl.setCrgbAt(r, c, color); } } } } +} kaleidoscope::BootGreetingEffect BootGreetingEffect; diff --git a/src/Kaleidoscope-LEDEffect-BootGreeting.h b/src/Kaleidoscope-LEDEffect-BootGreeting.h index 76a4a267..c92dbf43 100644 --- a/src/Kaleidoscope-LEDEffect-BootGreeting.h +++ b/src/Kaleidoscope-LEDEffect-BootGreeting.h @@ -21,16 +21,16 @@ #include "Kaleidoscope-LEDControl.h" namespace kaleidoscope { - class BootGreetingEffect : public KaleidoscopePlugin { - public: - BootGreetingEffect (void) {}; +class BootGreetingEffect : public KaleidoscopePlugin { + public: + BootGreetingEffect(void) {}; - void begin(void) final; + void begin(void) final; - private: - static void loopHook(const bool post_clear); - static bool done_; - }; + private: + static void loopHook(const bool post_clear); + static bool done_; +}; } extern kaleidoscope::BootGreetingEffect BootGreetingEffect;