ENH:modify the chamber temperature to float

jira:[new]

Change-Id: Ibd7e71e8d6e7f43767ca754481ac864c73b98057
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-11-01 09:33:21 +08:00
1 parent 525dc74bca
commit aecb5a3a67
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -509,7 +509,7 @@ MachineObject::MachineObject(NetworkAgent* agent, std::string name, std::string
bed_temp = 0.0f;
bed_temp_target = 0.0f;
chamber_temp = 0.0f;
chamber_temp_target = 0;
chamber_temp_target = 0.0f;
frame_temp = 0.0f;
/* ams fileds */
@@ -3132,7 +3132,7 @@ int MachineObject::parse_json(std::string payload)
}
if (jj.contains("ctt")) {
if (jj["ctt"].is_number()) {
chamber_temp_target = jj["ctt"].get<int>();
chamber_temp_target = jj["ctt"].get<float>();
}
}
/* signals */
+1 -1
View File
@@ -514,7 +514,7 @@ public:
float bed_temp;
float bed_temp_target;
float chamber_temp;
int chamber_temp_target;
float chamber_temp_target;
float frame_temp;
/* cooling */