beaglelogic: Use UINT64_MAX instead of (uint64_t)-1.

This commit is contained in:
Uwe Hermann 2018-02-20 20:02:30 +01:00
parent 71e22ba88f
commit 5a64d1d954
1 changed files with 1 additions and 1 deletions

View 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 continuous sampling, set the limit_samples to max possible value */
if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS) if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS)
devc->limit_samples = (uint64_t)-1; devc->limit_samples = UINT64_MAX;
/* Configure triggers & send header packet */ /* Configure triggers & send header packet */
if ((trigger = sr_session_trigger_get(sdi->session))) { if ((trigger = sr_session_trigger_get(sdi->session))) {