Преглед изворни кода

Optimise manage_inactivity call in loop()

Saves 12 bytes of flash
Guðni Már Gilbert пре 2 година
родитељ
комит
33a0a58810
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Firmware/Marlin_main.cpp

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -1940,7 +1940,7 @@ void loop()
 }
   //check heater every n milliseconds
   manage_heater();
-  isPrintPaused ? manage_inactivity(true) : manage_inactivity(false);
+  manage_inactivity(isPrintPaused);
   checkHitEndstops();
   lcd_update(0);
 #ifdef TMC2130