From 731ac70e553b264d9ba65470309883d38ef0fe74 Mon Sep 17 00:00:00 2001 From: Benjamin Vedder Date: Thu, 26 Mar 2020 13:51:20 +0100 Subject: [PATCH] Fixed typo in previous commit --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.c b/commands.c index 81e280d4..a855651e 100644 --- a/commands.c +++ b/commands.c @@ -793,7 +793,7 @@ void commands_process_packet(unsigned char *data, unsigned int len, // Battery limits can be set optionally in a backwards-compatible way. if ((int32_t)len >= (ind + 8)) { mcconf.l_in_current_min = buffer_get_float32_auto(data, &ind); - mcconf.l_in_current_min = buffer_get_float32_auto(data, &ind); + mcconf.l_in_current_max = buffer_get_float32_auto(data, &ind); } mcconf.lo_current_min = mcconf.l_current_min * mcconf.l_current_min_scale;