Arrange needed includes in Marlin.h

This commit is contained in:
Scott Lahteine 2016-07-25 20:53:36 -07:00
parent 93ea281061
commit df27d01cd9

View file

@ -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')