From 2328792b927b4a29314c01321062b9cac505baa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Ebeling?= Date: Thu, 24 Oct 2024 23:33:01 +0200 Subject: [PATCH] Add configurable (Stock-CoverUI) rain threshold --- Firmware/LowLevel/platformio.ini | 3 ++- Firmware/LowLevel/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Firmware/LowLevel/platformio.ini b/Firmware/LowLevel/platformio.ini index 8ba57d49..77178bc5 100644 --- a/Firmware/LowLevel/platformio.ini +++ b/Firmware/LowLevel/platformio.ini @@ -33,7 +33,8 @@ lib_deps = debug_tool = custom debug_init_break = debug_load_mode = always -debug_port = tcp:openmower.local:3333 +;debug_port = tcp:openmower.local:3333 +debug_port = tcp:dolly:3333 ; 133MHz board_build.f_cpu = 133000000L diff --git a/Firmware/LowLevel/src/main.cpp b/Firmware/LowLevel/src/main.cpp index 9b364440..87fb934e 100644 --- a/Firmware/LowLevel/src/main.cpp +++ b/Firmware/LowLevel/src/main.cpp @@ -551,7 +551,7 @@ void onUIPacketReceived(const uint8_t *buffer, size_t size) { else if (buffer[0] == Get_Rain && size == sizeof(struct msg_event_rain)) { struct msg_event_rain *msg = (struct msg_event_rain *)buffer; - stock_ui_rain = (msg->value < msg->threshold); + stock_ui_rain = (msg->value < llhl_config.rain_threshold); } else if (buffer[0] == Get_Subscribe && size == sizeof(struct msg_event_subscribe)) {