From c482062be49203836391d342b5e4748b3cd66fe8 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 28 Sep 2018 16:41:39 +0200 Subject: [PATCH] Emit an error when compiling for anything else but the Model01 This fixes #3. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Model01-TestMode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Kaleidoscope-Model01-TestMode.h b/src/Kaleidoscope-Model01-TestMode.h index cd7f768a..59576643 100644 --- a/src/Kaleidoscope-Model01-TestMode.h +++ b/src/Kaleidoscope-Model01-TestMode.h @@ -16,6 +16,10 @@ #pragma once +#ifndef ARDUINO_AVR_MODEL01 +#error The Kaleidoscope-Model01-TestMode plugin was designed for the Keyboardio Model01, and does not work with any other hardware. +#endif + #include #include "Kaleidoscope.h"