Arrange needed includes in Marlin.h
This commit is contained in:
parent
93ea281061
commit
df27d01cd9
@ -41,25 +41,27 @@
|
||||
|
||||
#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"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BLUETOOTH)
|
||||
#define MYSERIAL bluetoothSerial
|
||||
#else
|
||||
#define MYSERIAL Serial
|
||||
#endif // BLUETOOTH
|
||||
#else
|
||||
#include "MarlinSerial.h"
|
||||
#define MYSERIAL customizedSerial
|
||||
#endif
|
||||
|
||||
#include "WString.h"
|
||||
|
||||
@ -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…
Reference in New Issue
Block a user