From b8897867969049fcdce28dbbc9e0710576c9a19a Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Tue, 23 Aug 2016 00:10:53 -0700 Subject: [PATCH] Fixed error message --- src/machine.c | 2 +- src/status.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine.c b/src/machine.c index 1162b6f..54afdbb 100644 --- a/src/machine.c +++ b/src/machine.c @@ -643,7 +643,7 @@ void machine_init() { /// Alarm state; send an exception report and stop processing input stat_t mach_alarm(const char *location, stat_t code) { - status_message_P(location, STAT_LEVEL_ERROR, code, "ALARM"); + status_message_P(location, STAT_LEVEL_ERROR, code, 0); estop_trigger(ESTOP_ALARM); return code; } diff --git a/src/status.c b/src/status.c index 80ed0ec..2ec1e66 100644 --- a/src/status.c +++ b/src/status.c @@ -85,7 +85,7 @@ stat_t status_message_P(const char *location, status_level_t level, if (code) printf_P(PSTR(", \"code\": %d"), code); // Location - if (location) printf_P(PSTR(", \"location\": %S"), location); + if (location) printf_P(PSTR(", \"location\": \"%S\""), location); putchar('}'); putchar('\n'); -- 2.27.0