Description
When trying to save the z_offset after calibration using Z_OFFSET_APPLY_PROBE + SAVE_CONFIG, Klipper throws a conflict error because the same parameter is already defined in machine.cfg.
Error message
Steps to reproduce
- Adjust z_offset with babysteps during a print
- Run
Z_OFFSET_APPLY_PROBE
- Run
SAVE_CONFIG
- Conflict error is thrown, config is not saved
Expected behavior
SAVE_CONFIG should be able to override values from machine.cfg by writing them to the #*# SAVE_CONFIG block in printer.cfg, as Klipper normally does.
Workarounds attempted
- Adding
z_offset manually to printer.cfg → still conflicts
- Editing
machine.cfg directly → works, the new value is applied correctly, but changes will be lost on firmware updates
Additional notes
Same issue occurs with position_endstop in stepper_z when running Z_OFFSET_APPLY_ENDSTOP.
Cosmos version: 0.0.3
Description
When trying to save the z_offset after calibration using
Z_OFFSET_APPLY_PROBE+SAVE_CONFIG, Klipper throws a conflict error because the same parameter is already defined inmachine.cfg.Error message
Steps to reproduce
Z_OFFSET_APPLY_PROBESAVE_CONFIGExpected behavior
SAVE_CONFIGshould be able to override values frommachine.cfgby writing them to the#*# SAVE_CONFIGblock inprinter.cfg, as Klipper normally does.Workarounds attempted
z_offsetmanually toprinter.cfg→ still conflictsmachine.cfgdirectly → works, the new value is applied correctly, but changes will be lost on firmware updatesAdditional notes
Same issue occurs with
position_endstopinstepper_zwhen runningZ_OFFSET_APPLY_ENDSTOP.Cosmos version: 0.0.3