remove hardcoded MODEL_TS80 (#393)

* remove hardcoded MODEL_TS80

* #define MODEL_TS100 in sw4stm32/atollic config

* whitespace fix

* use sum of 'defined' instead of logic

* only print handle temp, not PCBVersion

* whitespace fix
This commit is contained in:
David Hilton
2018-10-28 15:48:04 -06:00
committed by Ben V. Brown
parent ffeacca74d
commit 81e87c86d0
3 changed files with 13 additions and 9 deletions

View File

@@ -18,11 +18,11 @@ enum Orientation {
ORIENTATION_RIGHT_HAND = 1,
ORIENTATION_FLAT = 3
};
#define MODEL_TS80
#ifndef MODEL_TS100
#ifndef MODEL_TS80
#error "Please Define the model you are building for! MODEL=TS100 or MODEL=TS80"
#endif
#if defined(MODEL_TS100) + defined(MODEL_TS80) > 1
#error "Multiple models defined!"
#elif defined(MODEL_TS100) + defined(MODEL_TS80) == 0
#error "No model defined!"
#endif
#ifdef MODEL_TS100