Переглянути джерело

AT90USB is only defined after pins.h is included.

Johann Rocholl 12 роки тому
джерело
коміт
621c24a10f
1 змінених файлів з 5 додано та 5 видалено
  1. 5
    5
      Marlin/Marlin.h

+ 5
- 5
Marlin/Marlin.h Переглянути файл

4
 #ifndef MARLIN_H
4
 #ifndef MARLIN_H
5
 #define MARLIN_H
5
 #define MARLIN_H
6
 
6
 
7
-#ifndef AT90USB
8
-#define  HardwareSerial_h // trick to disable the standard HWserial
9
-#endif
10
-
11
 #define  FORCE_INLINE __attribute__((always_inline)) inline
7
 #define  FORCE_INLINE __attribute__((always_inline)) inline
12
 
8
 
13
 #include <math.h>
9
 #include <math.h>
26
 #include "Configuration.h"
22
 #include "Configuration.h"
27
 #include "pins.h"
23
 #include "pins.h"
28
 
24
 
25
+#ifndef AT90USB
26
+#define  HardwareSerial_h // trick to disable the standard HWserial
27
+#endif
28
+
29
 #if ARDUINO >= 100 
29
 #if ARDUINO >= 100 
30
   #if defined(__AVR_ATmega644P__)
30
   #if defined(__AVR_ATmega644P__)
31
     #include "WProgram.h"
31
     #include "WProgram.h"
181
 
181
 
182
 extern float homing_feedrate[];
182
 extern float homing_feedrate[];
183
 extern bool axis_relative_modes[];
183
 extern bool axis_relative_modes[];
184
-extern int feedmultiply;
184
+extern int feedmultiply;
185
 extern bool feedmultiplychanged;
185
 extern bool feedmultiplychanged;
186
 extern int extrudemultiply; // Sets extrude multiply factor (in percent)
186
 extern int extrudemultiply; // Sets extrude multiply factor (in percent)
187
 extern float current_position[NUM_AXIS] ;
187
 extern float current_position[NUM_AXIS] ;

Завантаження…
Відмінити
Зберегти