Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 12089

Re: Odd Compilation error - boards.h???

$
0
0
In line #define MB(board) (MOTHERBOARD==BOARD_##board)
The ‘##’ preprocessing operator performs token pasting. When a macro is expanded, the two tokens on either side of each ‘##’ operator are combined into a single token, which then replaces the ‘##’
( from [gcc.gnu.org] )
so MB(ULTIMAKER) becomes MOTHERBOARD==BOARD_ULTIMAKER)

In Configuration.h need to uncomment ( remove // at start) your motherboard
#define MOTHERBOARD BOARD_ULTIMAKER


So in pins.h
#if MB(ULTIMAKER)
#define KNOWN_BOARD
becomes
#if MOTHERBOARD==BOARD_ULTIMAKER
#define KNOWN_BOARD

Viewing all articles
Browse latest Browse all 12089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>