Make the linter happy

pull/365/head
Jesse Vincent 8 years ago
parent 135f91dfa3
commit 91da0ae68e
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -85,9 +85,9 @@ LEDControl_::mode_add(LEDMode *mode) {
void
LEDControl_::set_all_leds_to(uint8_t r, uint8_t g, uint8_t b) {
cRGB color;
color.r=r;
color.g=g;
color.b=b;
color.r = r;
color.g = g;
color.b = b;
set_all_leds_to(color);
}
@ -217,7 +217,7 @@ LEDControl_::focusHook(const char *command) {
LEDControl.next_mode();
Serial.read();
} else if (peek == 'p') {
// TODO
// TODO(algernon)
Serial.read();
} else {
uint8_t mode = Serial.parseInt();

@ -4,16 +4,16 @@
#define LED_MAX_MODES 24
#define LED_TOGGLE B00000001 // Synthetic, internal
#define LED_TOGGLE B00000001 // Synthetic, internal
#define Key_LEDEffectNext (Key) { 0, KEY_FLAGS | SYNTHETIC | IS_INTERNAL | LED_TOGGLE }
class LEDMode : public KaleidoscopePlugin {
public:
virtual void begin(void);
virtual void setup(void) {};
virtual void init(void) {};
virtual void update(void) {};
virtual void setup(void) {}
virtual void init(void) {}
virtual void update(void) {}
virtual void activate(void);
};
@ -21,7 +21,7 @@ class LEDControl_ : public KaleidoscopePlugin {
public:
LEDControl_(void);
virtual void begin(void) final;
void begin(void) final;
static void next_mode(void);
static void setup(void);

@ -4,9 +4,9 @@
class LEDOff_ : public LEDMode {
public:
LEDOff_(void) { };
LEDOff_(void) { }
virtual void update(void) final;
void update(void) final;
};
extern LEDOff_ LEDOff;

@ -2,7 +2,6 @@
cRGB
breath_compute() {
// This code is adapted from FastLED lib8tion.h as of dd5d96c6b289cb6b4b891748a4aeef3ddceaf0e6
// Eventually, we should consider just using FastLED

Loading…
Cancel
Save