Make the linter happy

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent d790a01bb2
commit c564d298c7

@ -3,8 +3,7 @@
LEDRainbowEffect_::LEDRainbowEffect_(void) { LEDRainbowEffect_::LEDRainbowEffect_(void) {
} }
void void LEDRainbowEffect_::update(void) {
LEDRainbowEffect_::update(void) {
if (rainbow_current_ticks++ < rainbow_ticks) { if (rainbow_current_ticks++ < rainbow_ticks) {
return; return;
} else { } else {
@ -27,8 +26,7 @@ LEDRainbowEffect_ LEDRainbowEffect;
LEDRainbowWaveEffect_::LEDRainbowWaveEffect_(void) { LEDRainbowWaveEffect_::LEDRainbowWaveEffect_(void) {
} }
void void LEDRainbowWaveEffect_::update(void) {
LEDRainbowWaveEffect_::update(void) {
if (rainbow_current_ticks++ < rainbow_wave_ticks) { if (rainbow_current_ticks++ < rainbow_wave_ticks) {
return; return;
} else { } else {

@ -7,14 +7,14 @@ class LEDRainbowEffect_ : public LEDMode {
public: public:
LEDRainbowEffect_(void); LEDRainbowEffect_(void);
virtual void update(void) final; void update(void) final;
private: private:
uint16_t rainbow_hue = 0; //stores 0 to 614 uint16_t rainbow_hue = 0; //stores 0 to 614
static const uint8_t rainbow_steps = 1; //number of hues we skip in a 360 range per update static const uint8_t rainbow_steps = 1; //number of hues we skip in a 360 range per update
long rainbow_current_ticks = 0; uint16_t rainbow_current_ticks = 0;
static const long rainbow_ticks = 10; //delays between update static const uint16_t rainbow_ticks = 10; //delays between update
static const byte rainbow_saturation = 255; static const byte rainbow_saturation = 255;
static const byte rainbow_value = 50; static const byte rainbow_value = 50;
@ -27,14 +27,14 @@ class LEDRainbowWaveEffect_ : public LEDMode {
public: public:
LEDRainbowWaveEffect_(void); LEDRainbowWaveEffect_(void);
virtual void update(void) final; void update(void) final;
private: private:
uint16_t rainbow_hue = 0; //stores 0 to 614 uint16_t rainbow_hue = 0; //stores 0 to 614
static const uint8_t rainbow_wave_steps = 1; //number of hues we skip in a 360 range per update static const uint8_t rainbow_wave_steps = 1; //number of hues we skip in a 360 range per update
long rainbow_current_ticks = 0; uint16_t rainbow_current_ticks = 0;
static const long rainbow_wave_ticks = 10; //delays between update static const uint16_t rainbow_wave_ticks = 10; //delays between update
static const byte rainbow_saturation = 255; static const byte rainbow_saturation = 255;
static const byte rainbow_value = 50; static const byte rainbow_value = 50;

Loading…
Cancel
Save