|
@@ -26,14 +26,12 @@
|
26
|
26
|
#define HardwareSerial_h // trick to disable the standard HWserial
|
27
|
27
|
#endif
|
28
|
28
|
|
29
|
|
-#if ARDUINO >= 100
|
30
|
|
- #if defined(__AVR_ATmega644P__)
|
31
|
|
- #include "WProgram.h"
|
32
|
|
- #else
|
33
|
|
- #include "Arduino.h"
|
34
|
|
- #endif
|
|
29
|
+#if (ARDUINO >= 100) && !defined(__AVR_ATmega644P__)
|
|
30
|
+# include "Arduino.h"
|
35
|
31
|
#else
|
36
|
|
- #include "WProgram.h"
|
|
32
|
+# include "WProgram.h"
|
|
33
|
+ //Arduino < 1.0.0 does not define this, so we need to do it ourselfs
|
|
34
|
+# define analogInputToDigitalPin(p) ((p) + A0)
|
37
|
35
|
#endif
|
38
|
36
|
|
39
|
37
|
#include "MarlinSerial.h"
|