|
|
@ -4488,31 +4488,16 @@ inline void gcode_M104() { |
|
|
|
} |
|
|
|
#endif |
|
|
|
SERIAL_PROTOCOLPGM(" @:"); |
|
|
|
#ifdef EXTRUDER_WATTS |
|
|
|
SERIAL_PROTOCOL(((EXTRUDER_WATTS) * thermalManager.getHeaterPower(target_extruder)) / 127); |
|
|
|
SERIAL_PROTOCOLCHAR('W'); |
|
|
|
#else |
|
|
|
SERIAL_PROTOCOL(thermalManager.getHeaterPower(target_extruder)); |
|
|
|
#endif |
|
|
|
#if HAS_TEMP_BED |
|
|
|
SERIAL_PROTOCOLPGM(" B@:"); |
|
|
|
#ifdef BED_WATTS |
|
|
|
SERIAL_PROTOCOL(((BED_WATTS) * thermalManager.getHeaterPower(-1)) / 127); |
|
|
|
SERIAL_PROTOCOLCHAR('W'); |
|
|
|
#else |
|
|
|
SERIAL_PROTOCOL(thermalManager.getHeaterPower(-1)); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#if HOTENDS > 1 |
|
|
|
HOTEND_LOOP() { |
|
|
|
SERIAL_PROTOCOLPAIR(" @", e); |
|
|
|
SERIAL_PROTOCOLCHAR(':'); |
|
|
|
#ifdef EXTRUDER_WATTS |
|
|
|
SERIAL_PROTOCOL(((EXTRUDER_WATTS) * thermalManager.getHeaterPower(e)) / 127); |
|
|
|
SERIAL_PROTOCOLCHAR('W'); |
|
|
|
#else |
|
|
|
SERIAL_PROTOCOL(thermalManager.getHeaterPower(e)); |
|
|
|
#endif |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|