Skip to content

Conversation

Copy link

Copilot AI commented Jan 4, 2026

Web UI referenced Maslow_Calibration_Current_Threshold setting that was never registered in firmware, causing "Invalid setting or command" errors on startup and when attempting to configure calibration parameters.

Changes

  • Removed invalid setting reference from ESP3D-WEBUI/www/js/settings.js

    • Deleted Maslow_Calibration_Current_Threshold tooltip entry (line 35)
  • Updated tooltip for Maslow_Retract_Current_Threshold to clarify usage

    • Changed from "retract before considering them to be all the way in"
    • To "retraction and calibration before considering them to be tight"
  • Rebuilt web UI and updated firmware/FluidNC/data/index.html.gz

Context

Firmware uses single retractCurrentThreshold value for both operations:

  • Registration: MachineConfig.cpp:103 as Maslow_Retract_Current_Threshold
  • Retraction: MotorUnit.cpp:202
  • Calibration: Calibration.cpp:949,951

No separate calibration threshold exists or ever existed in the firmware.

Original prompt

This section details on the original issue you should resolve

<issue_title>Code inconsistency? Maslow_Calibration_Current_Threshold</issue_title>
<issue_description>Firmware 1.16 (I think)
As my Maslow 4.1 starts up, I get the following message:

[MSG:ERR: Invalid setting or command: /Maslow_Calibration_Current_Threshold]
error:3

Doesn't impede anything. There's a an entry for Calibration Force in the Setup/Configure panel, initially empty. When I try to put a value there and save it, I get

[MSG:ERR: Invalid setting or command: /Maslow_Calibration_Current_Threshold with value: 1000]

As far as I can tell, none of this makes a difference to the machine, which just uses the value for retraction (?) but it is a puzzlement. Is there something else going on there?
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 4, 2026 01:30
- Remove Maslow_Calibration_Current_Threshold entry from ESP3D-WEBUI/www/js/settings.js
- This setting was never registered in the firmware (only Maslow_Retract_Current_Threshold exists)
- Rebuild web UI with the fix
- Copy updated index.html.gz to firmware/FluidNC/data/

This fixes the "Invalid setting or command: /Maslow_Calibration_Current_Threshold" error

Co-authored-by: MaslowBot <231786780+MaslowBot@users.noreply.github.com>
…used for both retraction and calibration

Co-authored-by: MaslowBot <231786780+MaslowBot@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error for Maslow_Calibration_Current_Threshold setting Remove non-existent Maslow_Calibration_Current_Threshold setting from web UI Jan 4, 2026
Copilot AI requested a review from MaslowBot January 4, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code inconsistency? Maslow_Calibration_Current_Threshold

2 participants