/// 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;
}
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');