mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 21:33:17 +08:00
FIX: update the bed temp control
jira: [STUDIO-11331] Change-Id: I62526cd1cad0208324bc1970f5dde9ca03bf08f9
This commit is contained in:
parent
8382561c7c
commit
2fc15b4c11
@ -3457,6 +3457,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
|||||||
//nozzle temp range
|
//nozzle temp range
|
||||||
if (jj.contains("nozzle_temp_range")) {
|
if (jj.contains("nozzle_temp_range")) {
|
||||||
if (jj["nozzle_temp_range"].is_array()) {
|
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++) {
|
for (auto it = jj["nozzle_temp_range"].begin(); it != jj["nozzle_temp_range"].end(); it++) {
|
||||||
nozzle_temp_range.push_back(it.value().get<int>());
|
nozzle_temp_range.push_back(it.value().get<int>());
|
||||||
}
|
}
|
||||||
@ -3466,6 +3467,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
|||||||
// bed temp range
|
// bed temp range
|
||||||
if (jj.contains("bed_temp_range")) {
|
if (jj.contains("bed_temp_range")) {
|
||||||
if (jj["bed_temp_range"].is_array()) {
|
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++) {
|
for (auto it = jj["bed_temp_range"].begin(); it != jj["bed_temp_range"].end(); it++) {
|
||||||
bed_temp_range.push_back(it.value().get<int>());
|
bed_temp_range.push_back(it.value().get<int>());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user