Fix serial.h including itself

This commit is contained in:
Scott Lahteine 2018-06-27 22:39:59 -05:00
parent a431013eb7
commit d4fde91222
2 changed files with 4 additions and 1 deletions

View file

@ -61,6 +61,8 @@ void serial_spaces(uint8_t count) { count *= (PROPORTIONAL_FONT_RATIO); while (c
#if ENABLED(DEBUG_LEVELING_FEATURE) #if ENABLED(DEBUG_LEVELING_FEATURE)
#include "enum.h"
void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z) { void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z) {
serialprintPGM(prefix); serialprintPGM(prefix);
SERIAL_CHAR('('); SERIAL_CHAR('(');

View file

@ -23,7 +23,8 @@
#ifndef __SERIAL_H__ #ifndef __SERIAL_H__
#define __SERIAL_H__ #define __SERIAL_H__
#include "../inc/MarlinConfig.h" #include "../inc/MarlinConfigPre.h"
#include HAL_PATH(../HAL, HAL.h)
/** /**
* Define debug bit-masks * Define debug bit-masks