diff options
-rw-r--r-- | workspace/TS100/inc/hardware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workspace/TS100/inc/hardware.h b/workspace/TS100/inc/hardware.h index dc215769..0b70f227 100644 --- a/workspace/TS100/inc/hardware.h +++ b/workspace/TS100/inc/hardware.h @@ -19,9 +19,9 @@ enum Orientation { ORIENTATION_FLAT = 3 }; -#if defined(MODEL_TS100) && defined(MODEL_TS80) +#if defined(MODEL_TS100) + defined(MODEL_TS80) > 1 #error "Multiple models defined!" -#elif !defined(MODEL_TS100) && !defined(MODEL_TS80) +#elif defined(MODEL_TS100) + defined(MODEL_TS80) == 0 #error "No model defined!" #endif |