Browse Source

optimisation: re-use serialecho_temperatures()

Change in memory:
Flash: -82 bytes
SRAM: 0 bytes
Guðni Már Gilbert 1 year ago
parent
commit
fa0a522b7d
1 changed files with 1 additions and 8 deletions
  1. 1 8
      Firmware/Marlin_main.cpp

+ 1 - 8
Firmware/Marlin_main.cpp

@@ -6206,14 +6206,7 @@ Sigma_Exit:
           if(( _millis() - codenum) > 1000 ) //Print Temp Reading every 1 second while heating up.
           {
 			  if (!farm_mode) {
-				  float tt = degHotend(active_extruder);
-				  SERIAL_PROTOCOLPGM("T:");
-				  SERIAL_PROTOCOL(tt);
-				  SERIAL_PROTOCOLPGM(" E:");
-				  SERIAL_PROTOCOL((int)active_extruder);
-				  SERIAL_PROTOCOLPGM(" B:");
-				  SERIAL_PROTOCOL_F(degBed(), 1);
-				  SERIAL_PROTOCOLLN();
+				  serialecho_temperatures();
 			  }
 				  codenum = _millis();