From 928f8b8eb39597141c12d248e74cb6cac672ff07 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 28 Oct 2023 15:19:04 +0200 Subject: [PATCH] Do not arbitrary limit --max-fps to 1000 Limit to the variable type size, for consistency. PR #4213 --- app/src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/cli.c b/app/src/cli.c index 69a918c3..df73edac 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -1315,7 +1315,7 @@ parse_max_size(const char *s, uint16_t *max_size) { static bool parse_max_fps(const char *s, uint16_t *max_fps) { long value; - bool ok = parse_integer_arg(s, &value, false, 0, 1000, "max fps"); + bool ok = parse_integer_arg(s, &value, false, 0, 0xFFFF, "max fps"); if (!ok) { return false; }