Selaa lähdekoodia

Merge pull request #79 from changwoo/Marlin_v1

Fix build on Sanguino based boards with ATmega1284P
ErikZalm 13 vuotta sitten
vanhempi
commit
2faa0852b9
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7
    1
      Marlin/pins.h

+ 7
- 1
Marlin/pins.h Näytä tiedosto

@@ -475,7 +475,9 @@
475 475
 #define KNOWN_BOARD 1
476 476
 
477 477
 #ifndef __AVR_ATmega644P__
478
-    #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
478
+#ifndef __AVR_ATmega1284P__
479
+#error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
480
+#endif
479 481
 #endif
480 482
 
481 483
 //x axis pins
@@ -546,8 +548,10 @@
546 548
 #if MOTHERBOARD == 6
547 549
 #define KNOWN_BOARD 1
548 550
 #ifndef __AVR_ATmega644P__
551
+#ifndef __AVR_ATmega1284P__
549 552
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
550 553
 #endif
554
+#endif
551 555
 
552 556
 #define X_STEP_PIN         15
553 557
 #define X_DIR_PIN          21
@@ -867,8 +871,10 @@
867 871
 #define MOTHERBOARD 6
868 872
 #define KNOWN_BOARD 1
869 873
 #ifndef __AVR_ATmega644P__
874
+#ifndef __AVR_ATmega1284P__
870 875
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
871 876
 #endif
877
+#endif
872 878
 
873 879
 #define X_STEP_PIN         15
874 880
 #define X_DIR_PIN          18

Loading…
Peruuta
Tallenna