diff --git a/src/Kaleidoscope.cpp b/src/Kaleidoscope.cpp index 2d171a62..ac35c64c 100644 --- a/src/Kaleidoscope.cpp +++ b/src/Kaleidoscope.cpp @@ -9,7 +9,9 @@ Kaleidoscope_::Kaleidoscope_(void) { void Kaleidoscope_::setup(void) { +#ifdef __AVR__ wdt_disable(); +#endif delay(100); Keyboard.begin(); KeyboardHardware.setup(); diff --git a/src/Kaleidoscope.h b/src/Kaleidoscope.h index 5ab8cfa0..4a1ecbec 100644 --- a/src/Kaleidoscope.h +++ b/src/Kaleidoscope.h @@ -18,7 +18,9 @@ void setup(); #include #include +#ifdef __AVR__ #include +#endif #include KALEIDOSCOPE_HARDWARE_H #include "key_events.h" diff --git a/src/key_events.h b/src/key_events.h index 09ddee74..442f9f3f 100644 --- a/src/key_events.h +++ b/src/key_events.h @@ -1,6 +1,8 @@ #pragma once #include +#if defined(USBCON) && !defined(CORE_TEENSY) #include "KeyboardioHID.h" +#endif #include KALEIDOSCOPE_HARDWARE_H #include "key_defs.h"