Browse Source

Fix serial.h including itself

Scott Lahteine 6 years ago
parent
commit
d4fde91222
2 changed files with 4 additions and 1 deletions
  1. 2
    0
      Marlin/src/core/serial.cpp
  2. 2
    1
      Marlin/src/core/serial.h

+ 2
- 0
Marlin/src/core/serial.cpp View File

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

+ 2
- 1
Marlin/src/core/serial.h View File

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

Loading…
Cancel
Save