From c9aed7398743cbbcb348e230d4eabdc32894db88 Mon Sep 17 00:00:00 2001 From: Chris Pepper Date: Mon, 16 Apr 2018 00:27:34 +0100 Subject: [PATCH] Fix missed includes from HAL macro patch (#10416) --- Marlin/src/HAL/I2cEeprom.cpp | 2 +- Marlin/src/HAL/SpiEeprom.cpp | 2 +- Marlin/src/inc/MarlinConfig.h | 1 - Marlin/src/inc/MarlinConfigPre.h | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/HAL/I2cEeprom.cpp b/Marlin/src/HAL/I2cEeprom.cpp index 27fa0062d..874b99c80 100644 --- a/Marlin/src/HAL/I2cEeprom.cpp +++ b/Marlin/src/HAL/I2cEeprom.cpp @@ -33,7 +33,7 @@ // Includes // -------------------------------------------------------------------------- -#include "HAL.h" +#include HAL_PATH(., HAL.h) #include // -------------------------------------------------------------------------- diff --git a/Marlin/src/HAL/SpiEeprom.cpp b/Marlin/src/HAL/SpiEeprom.cpp index f15978b68..6d36d1ca7 100644 --- a/Marlin/src/HAL/SpiEeprom.cpp +++ b/Marlin/src/HAL/SpiEeprom.cpp @@ -29,7 +29,7 @@ #if ENABLED(SPI_EEPROM) -#include "HAL.h" +#include HAL_PATH(., HAL.h) #define CMD_WREN 6 // WREN #define CMD_READ 2 // WRITE diff --git a/Marlin/src/inc/MarlinConfig.h b/Marlin/src/inc/MarlinConfig.h index 26dbfda4d..58f67af7b 100644 --- a/Marlin/src/inc/MarlinConfig.h +++ b/Marlin/src/inc/MarlinConfig.h @@ -25,7 +25,6 @@ #include "MarlinConfigPre.h" -#include "../HAL/platforms.h" #include HAL_PATH(../HAL, HAL.h) #include "../pins/pins.h" diff --git a/Marlin/src/inc/MarlinConfigPre.h b/Marlin/src/inc/MarlinConfigPre.h index fb7258fb0..c4f1ec6d3 100644 --- a/Marlin/src/inc/MarlinConfigPre.h +++ b/Marlin/src/inc/MarlinConfigPre.h @@ -23,6 +23,7 @@ #ifndef _MARLIN_CONFIGPRE_H_ #define _MARLIN_CONFIGPRE_H_ +#include "../HAL/platforms.h" #include "../core/boards.h" #include "../core/macros.h" #include "Version.h"