mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-02 19:31:56 +00:00
Command JSON was assembled by hand at each call site, so the same message was written out twice in places (MachineObject and DevPrintOptions, MachineObject and DevUpgrade) and nothing held the field names and types in one place. OpcpCommands now has one builder per wire message, grouped by its top-level namespace, and the device layer and DeviceCore controls call those builders. This first slice covers job control, temperatures, print options, AMS settings and drying, camera, xcam, upgrade and system commands. Calibration, filament load and slot setting keep their own builders for now. The golden test of every command passes unchanged, so the bytes sent are the same. DevAxis::Ctrl_GoHome and Ctrl_Axis had no callers and are removed.