Kleine Arbeiten
This commit is contained in:
@@ -43,7 +43,14 @@ class GCodeParser {
|
||||
const params = {};
|
||||
for (let i = 1; i < tokens.length; i++) {
|
||||
const token = tokens[i].trim();
|
||||
if (token.length < 2) {
|
||||
if (token.length === 0) {
|
||||
continue;
|
||||
}
|
||||
if (token.length === 1) {
|
||||
// Einzelner Buchstabe = Flag ohne Zahlenwert (z. B. 'R' in 'M114 R').
|
||||
if (/^[A-Za-z]$/.test(token)) {
|
||||
params[token.toUpperCase()] = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user