From 80d94270a2864ed4b4281069d6bf88d6c7365eee Mon Sep 17 00:00:00 2001 From: linuswck Date: Tue, 18 Jun 2024 15:43:36 +0800 Subject: [PATCH] fix typo --- pykirdy/kirdy_qt.py | 2 +- src/net/cmd_handler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pykirdy/kirdy_qt.py b/pykirdy/kirdy_qt.py index 766ad83..2a5a845 100644 --- a/pykirdy/kirdy_qt.py +++ b/pykirdy/kirdy_qt.py @@ -385,7 +385,7 @@ class MainWindow(QtWidgets.QMainWindow): {'name': 'Upper Limit', 'type': 'float', 'value': 0, 'step': 1, 'decimals': 6, 'limits': (-273, 300), 'suffix': '°C', 'lock': False, 'target': 'thermostat', 'action': 'set_temp_mon_upper_limit'}, {'name': 'Lower Limit', 'type': 'float', 'value': 0, 'step': 1, 'decimals': 6, 'limits': (-273, 300), - 'suffix': '°C', 'lock': False, 'target': 'thermostat', 'action': 'set_temp_mon_upper_limit'}, + 'suffix': '°C', 'lock': False, 'target': 'thermostat', 'action': 'set_temp_mon_lower_limit'}, ]}, {'name': 'Thermistor Settings','expanded': False, 'type': 'group', 'children': [ {'name': 'T₀', 'type': 'float', 'value': 0, 'step': 1, 'decimals': 6, 'limits': (-273, 300), diff --git a/src/net/cmd_handler.rs b/src/net/cmd_handler.rs index 9a1da1a..3b3601d 100644 --- a/src/net/cmd_handler.rs +++ b/src/net/cmd_handler.rs @@ -545,7 +545,7 @@ pub fn execute_cmd( Some(ThermostatCmdEnum::SetTecMaxINeg) => match cmd.json.data_f32 { Some(val) => { send_response(buffer, ResponseEnum::Acknowledge, None, socket); - thermostat.set_max_i_pos(ElectricCurrent::new::(val)); + thermostat.set_max_i_neg(ElectricCurrent::new::(val)); } None => { send_response(