Bläddra i källkod

More rambo fixes

Erik vd Zalm 11 år sedan
förälder
incheckning
dbbf050005
3 ändrade filer med 9 tillägg och 2 borttagningar
  1. 2
    1
      Marlin/Marlin.pde
  2. 5
    1
      Marlin/Marlin_main.cpp
  3. 2
    0
      Marlin/stepper.cpp

+ 2
- 1
Marlin/Marlin.pde Visa fil

@@ -33,4 +33,5 @@
33 33
 #include "Configuration.h"
34 34
 #ifdef ULTRA_LCD
35 35
 #include <LiquidCrystal.h>
36
-#endif
36
+#endif
37
+#include <SPI.h>

+ 5
- 1
Marlin/Marlin_main.cpp Visa fil

@@ -26,7 +26,7 @@
26 26
  It has preliminary support for Matthew Roberts advance algorithm 
27 27
     http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
28 28
  */
29
-#include <SPI.h>
29
+
30 30
 #include "Marlin.h"
31 31
 
32 32
 #include "ultralcd.h"
@@ -40,6 +40,10 @@
40 40
 #include "language.h"
41 41
 #include "pins_arduino.h"
42 42
 
43
+#if DIGIPOTSS_PIN > -1
44
+#include <SPI.h>
45
+#endif
46
+
43 47
 #define VERSION_STRING  "1.0.0"
44 48
 
45 49
 // look here for descriptions of gcodes: http://linuxcnc.org/handbook/gcode/g-code.html

+ 2
- 0
Marlin/stepper.cpp Visa fil

@@ -28,7 +28,9 @@
28 28
 #include "ultralcd.h"
29 29
 #include "language.h"
30 30
 #include "speed_lookuptable.h"
31
+#if DIGIPOTSS_PIN > -1
31 32
 #include <SPI.h>
33
+#endif
32 34
 
33 35
 
34 36
 //===========================================================================

Laddar…
Avbryt
Spara