X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fbeaglelogic%2Fapi.c;h=95f53159a85fa073209ad6da1ca5f4eef83ca874;hb=42f6dd550257cc6a5ef227f76a168ea8db82bebb;hp=2ad649ebad416dc1d32b883e808c9f87c62e9d24;hpb=57a88297dd0c57eb9eab2d79bdf681ddcca29f00;p=libsigrok.git diff --git a/src/hardware/beaglelogic/api.c b/src/hardware/beaglelogic/api.c index 2ad649eb..95f53159 100644 --- a/src/hardware/beaglelogic/api.c +++ b/src/hardware/beaglelogic/api.c @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -109,7 +109,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) /* Default non-zero values (if any) */ devc->fd = -1; - devc->limit_samples = (uint64_t)10000000; + devc->limit_samples = 10000000; devc->tcp_buffer = 0; if (!conn) { @@ -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))) {