From bdfed6ec8f377815d2bec60869e73f741e895a7c 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. --- 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 b75e296b..fed215be 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; }