Remove checkAllHotends()
This commit is contained in:
parent
c7f0ee13be
commit
0cf0d40a2e
|
|
@ -244,14 +244,6 @@ static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, fl
|
|||
static void temp_runaway_stop(bool isPreheat, bool isBed);
|
||||
#endif
|
||||
|
||||
// return "false", if all extruder-heaters are 'off' (ie. "true", if any heater is 'on')
|
||||
bool checkAllHotends(void)
|
||||
{
|
||||
bool result=false;
|
||||
for(int i=0;i<EXTRUDERS;i++) result=(result||(target_temperature[i]!=0));
|
||||
return(result);
|
||||
}
|
||||
|
||||
// WARNING: the following function has been marked noinline to avoid a GCC 4.9.2 LTO
|
||||
// codegen bug causing a stack overwrite issue in process_commands()
|
||||
void __attribute__((noinline)) PID_autotune(float temp, int extruder, int ncycles)
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@ void temp_mgr_init(); //initialize the temperature handler
|
|||
void manage_heater(); //it is critical that this is called periodically.
|
||||
bool get_temp_error(); //return true if any thermal error is set
|
||||
|
||||
extern bool checkAllHotends(void);
|
||||
|
||||
// low level conversion routines
|
||||
// do not use these routines and variables outside of temperature.cpp
|
||||
extern int target_temperature[EXTRUDERS];
|
||||
|
|
@ -156,7 +154,7 @@ FORCE_INLINE bool isCoolingBed() {
|
|||
#define isCoolingHotend0() isCoolingHotend(0)
|
||||
|
||||
// return "false", if all heaters are 'off' (ie. "true", if any heater is 'on')
|
||||
#define CHECK_ALL_HEATERS (checkAllHotends()||(target_temperature_bed!=0))
|
||||
#define CHECK_ALL_HEATERS ((target_temperature[0] != 0) || (target_temperature_bed != 0))
|
||||
|
||||
int getHeaterPower(int heater);
|
||||
void disable_heater(); // Disable all heaters *instantaneously*
|
||||
|
|
|
|||
Loading…
Reference in New Issue