Differentiate translated On/Off from Serial ON/OFF

This commit is contained in:
Scott Lahteine
2018-11-12 17:04:00 -06:00
parent df907a905f
commit 50af1d1e08
36 changed files with 76 additions and 69 deletions

View File

@ -212,7 +212,8 @@ void GcodeSuite::M420() {
}
SERIAL_ECHO_START();
SERIAL_ECHOLNPAIR("Bed Leveling ", planner.leveling_active ? MSG_ON : MSG_OFF);
SERIAL_ECHOPGM("Bed Leveling ")
serialprintln_onoff(planner.leveling_active);
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
SERIAL_ECHO_START();

View File

@ -80,7 +80,8 @@ void GcodeSuite::G29() {
switch (state) {
case MeshReport:
if (leveling_is_valid()) {
SERIAL_PROTOCOLLNPAIR("State: ", planner.leveling_active ? MSG_ON : MSG_OFF);
SERIAL_PROTOCOLPGM("State: ");
serialprintln_onoff(planner.leveling_active);
mbl.report_mesh();
}
else