Simplify two fan_check_error checks
There are only 3 possible values. No need to check for two of them to rule of the last value. Instead simply check for the last value only. Change in memory: Flash: -16 bytes SRAM: 0 bytes
This commit is contained in:
parent
b67c359129
commit
583c46a63f
|
|
@ -11135,11 +11135,11 @@ void restore_extruder_temperature_from_ram() {
|
|||
//! @param e_move
|
||||
void restore_print_from_ram_and_continue(float e_move)
|
||||
{
|
||||
if (!saved_printing) return;
|
||||
|
||||
if (!saved_printing) return;
|
||||
|
||||
#ifdef FANCHECK
|
||||
// Do not allow resume printing if fans are still not ok
|
||||
if ((fan_check_error != EFCE_OK) && (fan_check_error != EFCE_FIXED)) return;
|
||||
// Do not allow resume printing if fans are still not ok
|
||||
if (fan_check_error == EFCE_REPORTED) return;
|
||||
if (fan_check_error == EFCE_FIXED) fan_check_error = EFCE_OK; //reenable serial stream processing if printing from usb
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -5283,7 +5283,7 @@ static void lcd_main_menu()
|
|||
// only allow resuming if hardware errors (temperature or fan) are cleared
|
||||
if(!get_temp_error()
|
||||
#ifdef FANCHECK
|
||||
&& ((fan_check_error == EFCE_FIXED) || (fan_check_error == EFCE_OK))
|
||||
&& fan_check_error != EFCE_REPORTED
|
||||
#endif //FANCHECK
|
||||
) {
|
||||
if (saved_printing) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue