From d4fde9122288821d1c21f7e267aeb8eec7622e68 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 27 Jun 2018 22:39:59 -0500 Subject: [PATCH] Fix serial.h including itself --- Marlin/src/core/serial.cpp | 2 ++ Marlin/src/core/serial.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/src/core/serial.cpp b/Marlin/src/core/serial.cpp index 2c0dabb522..d53d730c6e 100644 --- a/Marlin/src/core/serial.cpp +++ b/Marlin/src/core/serial.cpp @@ -61,6 +61,8 @@ void serial_spaces(uint8_t count) { count *= (PROPORTIONAL_FONT_RATIO); while (c #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) { serialprintPGM(prefix); SERIAL_CHAR('('); diff --git a/Marlin/src/core/serial.h b/Marlin/src/core/serial.h index 1b29cfc06a..bbabdb70e3 100644 --- a/Marlin/src/core/serial.h +++ b/Marlin/src/core/serial.h @@ -23,7 +23,8 @@ #ifndef __SERIAL_H__ #define __SERIAL_H__ -#include "../inc/MarlinConfig.h" +#include "../inc/MarlinConfigPre.h" +#include HAL_PATH(../HAL, HAL.h) /** * Define debug bit-masks