Loading files
4b4292b82This file is pinned to the selected release. Download the original to open it in your design tool.
class GrblHalLineParserResultAlarmDetails {
static parse(line) {
const r = line.match(/^\[ALARMCODE:(\d+)\|\|(.*)]$/);
if (!r) {
return null;
}
const payload = {
id: Number(r[1]),
description: r[2]
};
return {
type: GrblHalLineParserResultAlarmDetails,
payload
};
}
}
export default GrblHalLineParserResultAlarmDetails;