pull/365/head
Jesse Vincent 7 years ago
parent f11189edc2
commit 580953a39a
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -21,13 +21,13 @@
namespace kaleidoscope { namespace kaleidoscope {
bool BootGreetingEffect::done_; bool BootGreetingEffect::done_;
void BootGreetingEffect::begin (void) { void BootGreetingEffect::begin(void) {
Kaleidoscope.useLoopHook(loopHook); Kaleidoscope.useLoopHook(loopHook);
} }
void BootGreetingEffect::loopHook(const bool post_clear) { void BootGreetingEffect::loopHook(const bool post_clear) {
if (!post_clear || done_) if (!post_clear || done_)
return; return;
@ -46,7 +46,7 @@ namespace kaleidoscope {
} }
} }
} }
} }
} }
kaleidoscope::BootGreetingEffect BootGreetingEffect; kaleidoscope::BootGreetingEffect BootGreetingEffect;

@ -21,16 +21,16 @@
#include "Kaleidoscope-LEDControl.h" #include "Kaleidoscope-LEDControl.h"
namespace kaleidoscope { namespace kaleidoscope {
class BootGreetingEffect : public KaleidoscopePlugin { class BootGreetingEffect : public KaleidoscopePlugin {
public: public:
BootGreetingEffect (void) {}; BootGreetingEffect(void) {};
void begin(void) final; void begin(void) final;
private: private:
static void loopHook(const bool post_clear); static void loopHook(const bool post_clear);
static bool done_; static bool done_;
}; };
} }
extern kaleidoscope::BootGreetingEffect BootGreetingEffect; extern kaleidoscope::BootGreetingEffect BootGreetingEffect;

Loading…
Cancel
Save