Browse Source

Fix compiling for Arduin < 1.0.0

pull/1/head
daid303 12 years ago
parent
commit
596a7e1904
  1. 12
      Marlin/Marlin.h

12
Marlin/Marlin.h

@ -26,14 +26,12 @@
#define HardwareSerial_h // trick to disable the standard HWserial #define HardwareSerial_h // trick to disable the standard HWserial
#endif #endif
#if ARDUINO >= 100 #if (ARDUINO >= 100) && !defined(__AVR_ATmega644P__)
#if defined(__AVR_ATmega644P__) # include "Arduino.h"
#include "WProgram.h"
#else
#include "Arduino.h"
#endif
#else #else
#include "WProgram.h" # include "WProgram.h"
//Arduino < 1.0.0 does not define this, so we need to do it ourselfs
# define analogInputToDigitalPin(p) ((p) + A0)
#endif #endif
#include "MarlinSerial.h" #include "MarlinSerial.h"

Loading…
Cancel
Save