mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-02-20 01:11:21 +01:00
Fix $337 setting validation in $$
This commit is contained in:
@@ -299,6 +299,7 @@ const commandsQuery = (req, res, SendWS) => {
|
|||||||
"$133=300.000\n" +
|
"$133=300.000\n" +
|
||||||
"$134=300.000\n" +
|
"$134=300.000\n" +
|
||||||
"$135=300.000\n" +
|
"$135=300.000\n" +
|
||||||
|
"$337=\n" +
|
||||||
"ok\n"
|
"ok\n"
|
||||||
)
|
)
|
||||||
res.send("")
|
res.send("")
|
||||||
|
|||||||
BIN
dist/CNC/GRBLHal/index.html.gz
vendored
BIN
dist/CNC/GRBLHal/index.html.gz
vendored
Binary file not shown.
@@ -143,7 +143,10 @@ const MachineSettings = () => {
|
|||||||
} else {
|
} else {
|
||||||
fieldData.hasmodified = true
|
fieldData.hasmodified = true
|
||||||
}
|
}
|
||||||
if (fieldData.value.trim().length == 0) validation.valid = false
|
//$337 is optionnal setting, so it can be empty
|
||||||
|
if (fieldData.value.trim().length == 0 && fieldData.cmd != "$337"){
|
||||||
|
validation.valid = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!validation.valid) {
|
if (!validation.valid) {
|
||||||
validation.message = T("S42")
|
validation.message = T("S42")
|
||||||
|
|||||||
Reference in New Issue
Block a user