mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-04 17:44:46 -07:00
FIX: update the bed temp control
jira: [STUDIO-11331] Change-Id: I62526cd1cad0208324bc1970f5dde9ca03bf08f9 (cherry picked from commit 2fc15b4c11be79234cc5c08f989cb1090121a8cd)
This commit is contained in:
parent
afede91818
commit
0210a3caa8
1 changed files with 2 additions and 0 deletions
|
|
@ -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>());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue