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);