heater.c/.h: get rid of heaters_all_off().

Nowhere used and exactly duplicated heaters_all_zero().
This commit is contained in:
Markus Hitter 2015-08-07 16:10:50 +02:00
parent 36c2e09788
commit cf3b94b980
2 changed files with 0 additions and 15 deletions

View File

@ -457,20 +457,6 @@ uint8_t heaters_all_zero() {
return 255; return 255;
} }
/** \brief turn off all heaters
for emergency stop
*/
uint8_t heaters_all_off() {
uint8_t i;
for (i = 0; i < NUM_HEATERS; i++) {
if (heaters_runtime[i].heater_output > 0)
return 0;
}
return 255;
}
#ifdef EECONFIG #ifdef EECONFIG
/** \brief set heater P factor /** \brief set heater P factor
\param index heater to change factor for \param index heater to change factor for

View File

@ -22,7 +22,6 @@ void heater_set(heater_t index, uint8_t value);
void heater_tick(heater_t h, temp_type_t type, uint16_t current_temp, uint16_t target_temp); void heater_tick(heater_t h, temp_type_t type, uint16_t current_temp, uint16_t target_temp);
uint8_t heaters_all_zero(void); uint8_t heaters_all_zero(void);
uint8_t heaters_all_off(void);
#ifdef EECONFIG #ifdef EECONFIG
void pid_set_p(heater_t index, int32_t p); void pid_set_p(heater_t index, int32_t p);