Skip to content

Commit

Permalink
Add configurable (Stock-CoverUI) rain threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehaenger committed Oct 24, 2024
1 parent 32d6576 commit 2328792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Firmware/LowLevel/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Firmware/LowLevel/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 2328792

Please sign in to comment.