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);
^~~
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);