Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
examples/*/acq: fix maximum number of channels
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Mar 22, 2021
1 parent 43e9e8a commit 1b1b0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/acq.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ int main (int argc, char *argv [])
else {
chan = strtoul (chan_str, NULL, 10);

if (chan > END_CHAN_ID-1) {
if (chan > MAX_NUM_CHANS-1) {
fprintf (stderr, "[client:acq]: Channel number too big. Maximum number is: %u\n",
MAX_NUM_CHANS);
goto err_opt_exit;
Expand Down

0 comments on commit 1b1b0d2

Please sign in to comment.