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:
parent
8da8c8265f
commit
262cb9968d
|
@ -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);
|
||||
pre /= 256;
|
||||
pre = max(pre, 2);
|
||||
pre = MAX(pre, 2);
|
||||
pre--;
|
||||
|
||||
post /= 256;
|
||||
post = max(post, 2);
|
||||
post = MAX(post, 2);
|
||||
post--;
|
||||
|
||||
sr_dbg("start acquision, pre: %" PRIx64 ", post: %" PRIx64 ".", pre, post);
|
||||
|
|
Loading…
Reference in New Issue