From 8bbfb05b16d858e63db6ab26eff44ccd505791e2 Mon Sep 17 00:00:00 2001 From: Rocco Antoniou Date: Sat, 18 Jul 2026 17:49:56 -0600 Subject: [PATCH] Make SERIAL_PATH_SIZE a compile-time constant --- tools/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/monitor.c b/tools/monitor.c index ed7be139..23fa01b5 100644 --- a/tools/monitor.c +++ b/tools/monitor.c @@ -15,7 +15,7 @@ const size_t read_size = 8ul * 1024ul; /// @brief Max size of the serial path, - 1 for null terminator -const size_t SERIAL_PATH_SIZE = SERIAL_PATH_MAX - 1; +#define SERIAL_PATH_SIZE (SERIAL_PATH_MAX - 1) /// @brief In serial buffer char* in_buffer = NULL;