From 9506e2b70b8c81a82431bf66ec9c94b47f5e4688 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 16 Oct 2018 18:30:26 +0200 Subject: [PATCH] hardware::ErgoDox: Make cpplint happy Signed-off-by: Gergely Nagy --- src/kaleidoscope/hardware/ErgoDox.cpp | 2 +- src/kaleidoscope/hardware/ErgoDox.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kaleidoscope/hardware/ErgoDox.cpp b/src/kaleidoscope/hardware/ErgoDox.cpp index 7cd1f46b..b05a82b9 100644 --- a/src/kaleidoscope/hardware/ErgoDox.cpp +++ b/src/kaleidoscope/hardware/ErgoDox.cpp @@ -68,7 +68,7 @@ void ErgoDox::setup(void) { TCCR1B = _BV(WGM13); TCCR1A = 0; - const unsigned long cycles = (F_CPU / 2000000) * 500; + const uint32_t cycles = (F_CPU / 2000000) * 500; ICR1 = cycles; TCCR1B = _BV(WGM13) | _BV(CS10); diff --git a/src/kaleidoscope/hardware/ErgoDox.h b/src/kaleidoscope/hardware/ErgoDox.h index 243f6138..da48c126 100644 --- a/src/kaleidoscope/hardware/ErgoDox.h +++ b/src/kaleidoscope/hardware/ErgoDox.h @@ -49,14 +49,14 @@ namespace hardware { class ErgoDox { public: - ErgoDox(void) {}; + ErgoDox(void) {} - void syncLeds(void) {}; - void setCrgbAt(byte row, byte col, cRGB color) {}; - void setCrgbAt(uint8_t i, cRGB crgb) {}; + void syncLeds(void) {} + void setCrgbAt(byte row, byte col, cRGB color) {} + void setCrgbAt(uint8_t i, cRGB crgb) {} cRGB getCrgbAt(uint8_t i) { return CRGB(0, 0, 0); - }; + } void scanMatrix(void); void readMatrix(void);