From 5000cae1b1042512e9f52a7da2f81b7c73afc488 Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 22 Jan 2024 12:50:59 +0800 Subject: [PATCH] Grammar fixes --- src/command_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command_handler.rs b/src/command_handler.rs index efea1b8..3f30083 100644 --- a/src/command_handler.rs +++ b/src/command_handler.rs @@ -345,7 +345,7 @@ impl Handler { fn set_fan(socket: &mut TcpSocket, fan_pwm: u32, fan_ctrl: &mut FanCtrl) -> Result { if !fan_ctrl.fan_available() { - send_line(socket, b"{ \"warning\": \"this thermostat doesn't have fan!\" }"); + send_line(socket, b"{ \"warning\": \"this thermostat doesn't have a fan!\" }"); return Ok(Handler::Handled); } fan_ctrl.set_auto_mode(false); @@ -374,7 +374,7 @@ impl Handler { fn fan_auto(socket: &mut TcpSocket, fan_ctrl: &mut FanCtrl) -> Result { if !fan_ctrl.fan_available() { - send_line(socket, b"{ \"warning\": \"this thermostat doesn't have fan!\" }"); + send_line(socket, b"{ \"warning\": \"this thermostat doesn't have a fan!\" }"); return Ok(Handler::Handled); } fan_ctrl.set_auto_mode(true);