]> sigrok.org Git - libsigrok.git/commitdiff
beaglelogic: Use UINT64_MAX instead of (uint64_t)-1.
authorUwe Hermann <redacted>
Tue, 20 Feb 2018 19:02:30 +0000 (20:02 +0100)
committerUwe Hermann <redacted>
Tue, 20 Feb 2018 19:03:21 +0000 (20:03 +0100)
src/hardware/beaglelogic/api.c

index 92a6e49664112f5c89396d8812cd2fad38f40d3e..0be82c13ca9d2c8302a7756a125f876260437b41 100644 (file)
@@ -330,7 +330,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
 
        /* If continuous sampling, set the limit_samples to max possible value */
        if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS)
-               devc->limit_samples = (uint64_t)-1;
+               devc->limit_samples = UINT64_MAX;
 
        /* Configure triggers & send header packet */
        if ((trigger = sr_session_trigger_get(sdi->session))) {