FIX: add configured bed leveling option

jira: [STUDIO-11412]
Change-Id: I999d5f4df34c7b1979a340735abaf275f2574674
(cherry picked from commit 63e6890cc742a861c53a109ba848b69292a1a858)
This commit is contained in:
xin.zhang authored and Noisyfox committed 2025-09-21 13:47:55 +08:00
1 parent b1b82927b2
commit f4a3ceba2b
12 files changed
+19 -16

No files matched your search

+3 -3
View File
@@ -3517,9 +3517,9 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
}
}
if (jj.contains("support_auto_leveling")) {
if (jj["support_auto_leveling"].is_boolean()) {
is_support_auto_leveling = jj["support_auto_leveling"].get<bool>();
if (jj.contains("support_bed_leveling")) {
if (jj["support_bed_leveling"].is_number_integer()) {
is_support_bed_leveling = jj["support_bed_leveling"].get<int>();
}
}