We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70e563 commit ce40680Copy full SHA for ce40680
1 file changed
src/views/providers/gcodeRuntimeParser.ts
@@ -106,7 +106,9 @@ export class GCodeRuntimeParser {
106
107
// Feed Rate
108
if (letter === 'E' || letter === 'F') {
109
- state.feedrate = +argument;
+ if (!isNaN(+argument)) {
110
+ state.feedrate = +argument;
111
+ }
112
}
113
114
// Coords
@@ -187,7 +189,7 @@ export class GCodeRuntimeParser {
187
189
// New Point -> Old Point
188
190
Object.assign(oldpt, newpt);
191
- if (!state.rapid) {
192
+ if (!state.rapid && !isNaN(state.distance)) {
193
// Calculate Time :: t = d / v :: Convert Feedrate from IPM to Per Second
194
state.rt += state.distance / (state.feedrate / 60);
195
0 commit comments