Browse Source

Fix serial.h including itself

Scott Lahteine 7 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
 
61
 
62
 #if ENABLED(DEBUG_LEVELING_FEATURE)
62
 #if ENABLED(DEBUG_LEVELING_FEATURE)
63
 
63
 
64
+  #include "enum.h"
65
+
64
   void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z) {
66
   void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z) {
65
     serialprintPGM(prefix);
67
     serialprintPGM(prefix);
66
     SERIAL_CHAR('(');
68
     SERIAL_CHAR('(');

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

23
 #ifndef __SERIAL_H__
23
 #ifndef __SERIAL_H__
24
 #define __SERIAL_H__
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
  * Define debug bit-masks
30
  * Define debug bit-masks

Loading…
Cancel
Save