From 1bf2afd458f0de9590d6e41518feb01fb077386a Mon Sep 17 00:00:00 2001 From: bdring Date: Fri, 8 Dec 2023 12:58:52 -0600 Subject: [PATCH 1/2] Added an interval range --- FluidNC/src/UartChannel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FluidNC/src/UartChannel.h b/FluidNC/src/UartChannel.h index 30d03ce3a..263e93c7e 100644 --- a/FluidNC/src/UartChannel.h +++ b/FluidNC/src/UartChannel.h @@ -42,7 +42,7 @@ class UartChannel : public Channel, public Configuration::Configurable { // Configuration methods void group(Configuration::HandlerBase& handler) override { handler.item("uart_num", _uart_num); - handler.item("report_interval_ms", _report_interval_ms); + handler.item("report_interval_ms", _report_interval_ms, 50, 5000); } }; From 8753a05f1b3ab917f70e2b19437ccf0bf232ee7f Mon Sep 17 00:00:00 2001 From: bdring Date: Fri, 8 Dec 2023 13:25:32 -0600 Subject: [PATCH 2/2] Oops, we need 0 in the range to turn it off --- FluidNC/src/UartChannel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FluidNC/src/UartChannel.h b/FluidNC/src/UartChannel.h index 263e93c7e..58bcead85 100644 --- a/FluidNC/src/UartChannel.h +++ b/FluidNC/src/UartChannel.h @@ -42,7 +42,7 @@ class UartChannel : public Channel, public Configuration::Configurable { // Configuration methods void group(Configuration::HandlerBase& handler) override { handler.item("uart_num", _uart_num); - handler.item("report_interval_ms", _report_interval_ms, 50, 5000); + handler.item("report_interval_ms", _report_interval_ms, 0, 5000); } };