1
0
forked from M-Labs/kirdy

fix typos

This commit is contained in:
linuswck 2024-03-12 11:47:58 +08:00
parent 574abc2c2f
commit 74c465d16f

View File

@ -228,6 +228,7 @@ pub fn execute_cmd(buffer: &mut [u8], buffer_size: usize, socket: &mut SocketHan
match cmd.set_json("/json", &buffer[0..buffer_size]){
Ok(_) => {
tec.set_i(ElectricCurrent::new::<milliampere>(cmd.json.tec_set_i));
send_response(buffer, ResponseEnum::Acknowledge, None, socket);
return;
}
Err(_) => { /* Do Nothing */}
@ -411,7 +412,7 @@ pub fn execute_cmd(buffer: &mut [u8], buffer_size: usize, socket: &mut SocketHan
tec.power_up()
}
Some(ThermostatCmdEnum::PowerDown) => {
send_response(buffer, ResponseEnum::Acknowledge, Some(ERR_MSG_MISSING_DATA_F32), socket);
send_response(buffer, ResponseEnum::Acknowledge, None, socket);
tec.power_down()
}
Some(ThermostatCmdEnum::SetTecMaxV) => {