mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2025-10-31 11:56:46 -07:00
Fix $337 setting validation in $$
This commit is contained in:
@@ -299,6 +299,7 @@ const commandsQuery = (req, res, SendWS) => {
|
||||
"$133=300.000\n" +
|
||||
"$134=300.000\n" +
|
||||
"$135=300.000\n" +
|
||||
"$337=\n" +
|
||||
"ok\n"
|
||||
)
|
||||
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 {
|
||||
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) {
|
||||
validation.message = T("S42")
|
||||
|
||||
Reference in New Issue
Block a user