Skip to content

Commit

Permalink
Do not arbitrary limit --max-fps to 1000
Browse files Browse the repository at this point in the history
Limit to the variable type size, for consistency.

PR #4213 <#4213>
  • Loading branch information
rom1v committed Oct 31, 2023
1 parent f78b84d commit 07843d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07843d8

Please sign in to comment.