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