fix TEC current scale
This commit is contained in:
parent
d59c904688
commit
e4a2093460
@ -37,10 +37,10 @@ float Kirdy::get_laser_temp()
|
||||
return reply["thermostat"]["temperature"].asFloat();
|
||||
}
|
||||
|
||||
void Kirdy::set_tec_current(float amps)
|
||||
void Kirdy::set_tec_current(float milliamps)
|
||||
{
|
||||
Json::Value request;
|
||||
request["tec_set_i"] = amps;
|
||||
request["tec_set_i"] = milliamps*0.001f;
|
||||
Json::Value reply = command(request);
|
||||
if(reply["msg_type"].asString() != "Acknowledge")
|
||||
std::cerr << "TEC set current failed\n";
|
||||
|
Loading…
Reference in New Issue
Block a user