From 74c465d16f6197b2b34b9978810dcf9297a7c0b9 Mon Sep 17 00:00:00 2001 From: linuswck Date: Tue, 12 Mar 2024 11:47:58 +0800 Subject: [PATCH] fix typos --- src/net/cmd_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/cmd_handler.rs b/src/net/cmd_handler.rs index c637239..c356240 100644 --- a/src/net/cmd_handler.rs +++ b/src/net/cmd_handler.rs @@ -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::(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) => {