From 4e8b7385216f6f23a04164d2ae7cfe9a0fcded2d Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 27 Sep 2018 23:43:59 +0200 Subject: [PATCH] Coding style fix Our coding style says that private properties should end with an underscore, lets make it so. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-LEDEffect-Breathe.cpp | 4 ++-- src/Kaleidoscope-LEDEffect-Breathe.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Kaleidoscope-LEDEffect-Breathe.cpp b/src/Kaleidoscope-LEDEffect-Breathe.cpp index debcb0b4..86795af9 100644 --- a/src/Kaleidoscope-LEDEffect-Breathe.cpp +++ b/src/Kaleidoscope-LEDEffect-Breathe.cpp @@ -20,9 +20,9 @@ namespace kaleidoscope { void LEDBreatheEffect::update(void) { uint16_t now = millis(); - if ((now - last_update) < UPDATE_INTERVAL) + if ((now - last_update_) < UPDATE_INTERVAL) return; - last_update = now; + last_update_ = now; cRGB color = breath_compute(hue, saturation); ::LEDControl.set_all_leds_to(color); diff --git a/src/Kaleidoscope-LEDEffect-Breathe.h b/src/Kaleidoscope-LEDEffect-Breathe.h index 39fc2a55..edb2db27 100644 --- a/src/Kaleidoscope-LEDEffect-Breathe.h +++ b/src/Kaleidoscope-LEDEffect-Breathe.h @@ -31,7 +31,7 @@ class LEDBreatheEffect : public LEDMode { void update(void) final; private: - uint16_t last_update = 0; + uint16_t last_update_ = 0; }; }