sysclk-sla5032: Fix compiler warnings (max vs. MAX).

src/hardware/sysclk-sla5032/protocol.c: In function ‘la_start_acquisition’:
  src/hardware/sysclk-sla5032/protocol.c:244:8: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration]
    pre = max(pre, 2);
          ^~~
This commit is contained in:
Uwe Hermann 2019-04-22 13:12:20 +02:00
parent 8da8c8265f
commit 262cb9968d
1 changed files with 2 additions and 2 deletions

View File

@ -241,11 +241,11 @@ SR_PRIV int la_start_acquisition(const struct sr_dev_inst *sdi)
sr_dbg("start acquision, pre: %" PRIu64 ", post: %" PRIu64 ".", pre, post); sr_dbg("start acquision, pre: %" PRIu64 ", post: %" PRIu64 ".", pre, post);
pre /= 256; pre /= 256;
pre = max(pre, 2); pre = MAX(pre, 2);
pre--; pre--;
post /= 256; post /= 256;
post = max(post, 2); post = MAX(post, 2);
post--; post--;
sr_dbg("start acquision, pre: %" PRIx64 ", post: %" PRIx64 ".", pre, post); sr_dbg("start acquision, pre: %" PRIx64 ", post: %" PRIx64 ".", pre, post);