Show power output in same order as temp output

This commit is contained in:
Scott Lahteine 2016-07-28 16:03:16 -07:00
parent 74df828acc
commit e1970b4b28

View File

@ -4487,6 +4487,13 @@ inline void gcode_M104() {
#endif #endif
} }
#endif #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 #if HAS_TEMP_BED
SERIAL_PROTOCOLPGM(" B@:"); SERIAL_PROTOCOLPGM(" B@:");
#ifdef BED_WATTS #ifdef BED_WATTS
@ -4496,13 +4503,6 @@ inline void gcode_M104() {
SERIAL_PROTOCOL(thermalManager.getHeaterPower(-1)); SERIAL_PROTOCOL(thermalManager.getHeaterPower(-1));
#endif #endif
#endif #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 HOTENDS > 1 #if HOTENDS > 1
HOTEND_LOOP() { HOTEND_LOOP() {
SERIAL_PROTOCOLPAIR(" @", e); SERIAL_PROTOCOLPAIR(" @", e);