mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: update the bed temp control
jira: [STUDIO-11331] Change-Id: I62526cd1cad0208324bc1970f5dde9ca03bf08f9 (cherry picked from commit 2fc15b4c11be79234cc5c08f989cb1090121a8cd)
This commit is contained in:
@@ -3376,6 +3376,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
//nozzle temp range
|
||||
if (jj.contains("nozzle_temp_range")) {
|
||||
if (jj["nozzle_temp_range"].is_array()) {
|
||||
nozzle_temp_range.clear();
|
||||
for (auto it = jj["nozzle_temp_range"].begin(); it != jj["nozzle_temp_range"].end(); it++) {
|
||||
nozzle_temp_range.push_back(it.value().get<int>());
|
||||
}
|
||||
@@ -3385,6 +3386,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
// bed temp range
|
||||
if (jj.contains("bed_temp_range")) {
|
||||
if (jj["bed_temp_range"].is_array()) {
|
||||
bed_temp_range.clear();
|
||||
for (auto it = jj["bed_temp_range"].begin(); it != jj["bed_temp_range"].end(); it++) {
|
||||
bed_temp_range.push_back(it.value().get<int>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user