Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-08-08 18:01:27 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-08-08 18:01:27 +0300
commit79634870bc6a6050fef5b1a88435ab783ac3ac0b (patch)
tree27e1a2963988ae7b34c9ba20b4e7a20f1f86960e
parent8f5edd91b82b17dced61af6d5979675122742a48 (diff)
Minor fix to M122 in expansion board mode
-rw-r--r--src/CAN/CommandProcessor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp
index 10ff31a8..ccfc17e3 100644
--- a/src/CAN/CommandProcessor.cpp
+++ b/src/CAN/CommandProcessor.cpp
@@ -371,11 +371,15 @@ static GCodeResult EutGetInfo(const CanMessageReturnInfo& msg, const StringRef&
#elif HAS_VOLTAGE_MONITOR
reply.catf("VIN: %.1fV", (double)reprap.GetPlatform().GetCurrentPowerVoltage());
#elif HAS_12V_MONITOR
- reply.catf("V12: %.1fn", (double)reprap.GetPlatform().GetCurrentV12Voltage());
+ reply.catf("V12: %.1fV", (double)reprap.GetPlatform().GetCurrentV12Voltage());
#endif
#if HAS_CPU_TEMP_SENSOR
const MinCurMax temps = reprap.GetPlatform().GetMcuTemperatures();
- reply.catf("MCU temperature: min %.1fC, current %.1fC, max %.1fC", (double)temps.minimum, (double)temps.current, (double)temps.maximum);
+ reply.catf(
+# if HAS_VOLTAGE_MONITOR || HAS_12V_MONITOR
+ ", "
+# endif
+ "MCU temperature: min %.1fC, current %.1fC, max %.1fC", (double)temps.minimum, (double)temps.current, (double)temps.maximum);
#endif
}
break;