Skip to content

Commit e7b9c7c

Browse files
committed
Fix $337 setting validation in $$
1 parent 5cf34ef commit e7b9c7c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

config/targets/CNC/grblHAL/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ const commandsQuery = (req, res, SendWS) => {
299299
"$133=300.000\n" +
300300
"$134=300.000\n" +
301301
"$135=300.000\n" +
302+
"$337=\n" +
302303
"ok\n"
303304
)
304305
res.send("")

dist/CNC/GRBLHal/index.html.gz

8 Bytes
Binary file not shown.

src/targets/CNC/grblHAL/MachineSettings.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ const MachineSettings = () => {
143143
} else {
144144
fieldData.hasmodified = true
145145
}
146-
if (fieldData.value.trim().length == 0) validation.valid = false
146+
//$337 is optionnal setting, so it can be empty
147+
if (fieldData.value.trim().length == 0 && fieldData.cmd != "$337"){
148+
validation.valid = false
149+
}
147150
}
148151
if (!validation.valid) {
149152
validation.message = T("S42")

0 commit comments

Comments
 (0)