Browse Source

More rambo fixes

Erik vd Zalm 11 years ago
parent
commit
dbbf050005
3 changed files with 9 additions and 2 deletions
  1. 2
    1
      Marlin/Marlin.pde
  2. 5
    1
      Marlin/Marlin_main.cpp
  3. 2
    0
      Marlin/stepper.cpp

+ 2
- 1
Marlin/Marlin.pde View File

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

+ 5
- 1
Marlin/Marlin_main.cpp View File

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

+ 2
- 0
Marlin/stepper.cpp View File

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

Loading…
Cancel
Save