chiark / gitweb /
Fix build on Sanguino based boards with ATmega1284P
authorChangwoo Ryu <cwryu@debian.org>
Sun, 26 Feb 2012 19:05:33 +0000 (04:05 +0900)
committerChangwoo Ryu <cwryu@debian.org>
Sun, 26 Feb 2012 19:12:55 +0000 (04:12 +0900)
Marlin/pins.h

index 5d1b60611542189e59d3026b51d8c48173176c9d..e950cbe6832987ace273d34005f19579a6666692 100644 (file)
 #define KNOWN_BOARD 1
 
 #ifndef __AVR_ATmega644P__
-    #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
+#ifndef __AVR_ATmega1284P__
+#error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
+#endif
 #endif
 
 //x axis pins
 #if MOTHERBOARD == 6
 #define KNOWN_BOARD 1
 #ifndef __AVR_ATmega644P__
+#ifndef __AVR_ATmega1284P__
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
 #endif
+#endif
 
 #define X_STEP_PIN         15
 #define X_DIR_PIN          21
 #define MOTHERBOARD 6
 #define KNOWN_BOARD 1
 #ifndef __AVR_ATmega644P__
+#ifndef __AVR_ATmega1284P__
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
 #endif
+#endif
 
 #define X_STEP_PIN         15
 #define X_DIR_PIN          18