commit f2e949b0765b7f2e72e216693709597f426c6d19
parent 932aaf28ef709f7cdc797d498eefee2da47a25f9
Author: minute <lukas@mntre.com>
Date: Mon, 6 Nov 2023 08:42:21 +0000
Merge branch 'lpc-compile-error' into 'master'
reform2-lpc-fw: write out descriptive error if REFORM_MOTHERBOARD_REV is missing
See merge request reform/reform!53
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/reform2-lpc-fw/src/boards/reform2/board_reform2.c b/reform2-lpc-fw/src/boards/reform2/board_reform2.c
@@ -43,6 +43,10 @@
// if you have a motherboard made before 2023 (2.0 R-3):
//#define REFORM_MOTHERBOARD_REV REFORM_MBREV_20_R3
+#ifndef REFORM_MOTHERBOARD_REV
+# error You must have REFORM_MOTHERBOARD_REV set to the firmware you intend to build
+#endif
+
//#define REF2_DEBUG 1
#define FW_STRING1 "MREF2LPC"
#if REFORM_MOTHERBOARD_REV == 2