Drop redundant "simulator.h" includes.
simulator.h is already included in config.h/arduino.h, so it doesn't need to be included again most of the time. In some cases it was included twice on purpose to undo some intervening include file, but these intervening includes were unnecessary. Remove some related include file redundancy by re-ordering the include files and relocating some nested includes up to the parent .c file.
This commit is contained in:
parent
11e907de03
commit
592df2c73f
|
|
@ -14,9 +14,6 @@
|
|||
#include "sersendf.h"
|
||||
|
||||
#include "gcode_process.h"
|
||||
#ifdef SIMULATOR
|
||||
#include "simulator.h"
|
||||
#endif
|
||||
|
||||
|
||||
/** Bitfield for available sources of G-code.
|
||||
|
|
|
|||
1
heater.h
1
heater.h
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include "config_wrapper.h"
|
||||
#include <stdint.h>
|
||||
#include "simulator.h"
|
||||
#include "temp.h"
|
||||
|
||||
/// Default scaled P factor, equivalent to 8.0 counts/qC or 32 counts/C.
|
||||
|
|
|
|||
1
mendel.c
1
mendel.c
|
|
@ -46,7 +46,6 @@
|
|||
#include "spi.h"
|
||||
#include "sd.h"
|
||||
#include "display.h"
|
||||
#include "simulator.h"
|
||||
|
||||
#ifdef SIMINFO
|
||||
#include "../simulavr/src/simulavr_info.h"
|
||||
|
|
|
|||
2
serial.h
2
serial.h
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "config_wrapper.h"
|
||||
#include <stdint.h>
|
||||
#include "simulator.h"
|
||||
|
||||
|
||||
#ifdef USB_SERIAL
|
||||
#include "usb_serial.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
// 2012-10-17: Import to Teacup firmware
|
||||
|
||||
#include "config_wrapper.h"
|
||||
#include "simulator.h"
|
||||
|
||||
/* protect this file from Arduino IDE */
|
||||
#ifdef USB_SERIAL
|
||||
|
|
|
|||
Loading…
Reference in New Issue