Browse Source

Arrange needed includes in Marlin.h

pull/1/head
Scott Lahteine 9 years ago
parent
commit
df27d01cd9
  1. 26
      Marlin/Marlin.h

26
Marlin/Marlin.h

@ -41,26 +41,28 @@
#include "fastio.h"
#include "Configuration.h"
#include "pins.h"
#include "utility.h"
#ifndef SANITYCHECK_H
#error "Your Configuration.h and Configuration_adv.h files are outdated!"
#endif
#include "Arduino.h"
#include "enum.h"
#include "utility.h"
typedef unsigned long millis_t;
#ifdef USBCON
#include "HardwareSerial.h"
#if ENABLED(BLUETOOTH)
#define MYSERIAL bluetoothSerial
#else
#define MYSERIAL Serial
#endif // BLUETOOTH
#else
#include "MarlinSerial.h"
#define MYSERIAL customizedSerial
#endif
#include "MarlinSerial.h"
#include "WString.h"
#if ENABLED(PRINTCOUNTER)
@ -69,16 +71,6 @@ typedef unsigned long millis_t;
#include "stopwatch.h"
#endif
#ifdef USBCON
#if ENABLED(BLUETOOTH)
#define MYSERIAL bluetoothSerial
#else
#define MYSERIAL Serial
#endif // BLUETOOTH
#else
#define MYSERIAL customizedSerial
#endif
#define SERIAL_CHAR(x) MYSERIAL.write(x)
#define SERIAL_EOL SERIAL_CHAR('\n')

Loading…
Cancel
Save