astyle with current project style guidelines

pull/365/head
Jesse Vincent 8 years ago
parent 7686f58715
commit 90d21fb627
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -1,13 +1,13 @@
#include "Kaleidoscope-LEDEffect-SolidColor.h" #include "Kaleidoscope-LEDEffect-SolidColor.h"
LEDSolidColor::LEDSolidColor (uint8_t r, uint8_t g, uint8_t b) { LEDSolidColor::LEDSolidColor(uint8_t r, uint8_t g, uint8_t b) {
this->r = r; this->r = r;
this->g = g; this->g = g;
this->b = b; this->b = b;
LEDControl.mode_add (this); LEDControl.mode_add(this);
} }
void void
LEDSolidColor::init (void) { LEDSolidColor::init(void) {
LEDControl.set_all_leds_to (r, g, b); LEDControl.set_all_leds_to(r, g, b);
} }

@ -4,9 +4,9 @@
class LEDSolidColor : public LEDMode { class LEDSolidColor : public LEDMode {
public: public:
LEDSolidColor (uint8_t r, uint8_t g, uint8_t b); LEDSolidColor(uint8_t r, uint8_t g, uint8_t b);
virtual void init (void) final; virtual void init(void) final;
private: private:
uint8_t r, g, b; uint8_t r, g, b;

Loading…
Cancel
Save