Browse Source

Prevent MB false-positive on bad board name

Scott Lahteine 6 years ago
parent
commit
b9418439b9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/boards.h

+ 1
- 1
Marlin/src/core/boards.h View File

@@ -226,6 +226,6 @@
226 226
 #define BOARD_THE_BORG         1860   // THE-BORG (Power outputs: Hotend0, Hotend1, Bed, Fan)
227 227
 
228 228
 
229
-#define MB(board) (MOTHERBOARD==BOARD_##board)
229
+#define MB(board) (defined(BOARD_##board) && MOTHERBOARD==BOARD_##board)
230 230
 
231 231
 #endif // __BOARDS_H

Loading…
Cancel
Save