X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Fcommand.c;h=a1c2109c120d08d83ab568e97f598611f2a52cbc;hb=61a429c963fb21c3d8cb8e9166d621526724b714;hp=7053ce4289c19c278f7c91804eb52148ecabc16a;hpb=f4575b6549ded99ec5380b4d6fafa899f5cb65ae;p=libsigrok.git diff --git a/hardware/fx2lafw/command.c b/hardware/fx2lafw/command.c index 7053ce42..a1c2109c 100644 --- a/hardware/fx2lafw/command.c +++ b/hardware/fx2lafw/command.c @@ -18,11 +18,10 @@ */ #include - #include "fx2lafw.h" #include "command.h" -#include "sigrok.h" -#include "sigrok-internal.h" +#include "libsigrok.h" +#include "libsigrok-internal.h" SR_PRIV int command_get_fw_version(libusb_device_handle *devhdl, struct version_info *vi) @@ -59,16 +58,15 @@ SR_PRIV int command_get_revid_version(libusb_device_handle *devhdl, } SR_PRIV int command_start_acquisition(libusb_device_handle *devhdl, - uint64_t samplerate, - bool samplewide) + uint64_t samplerate, gboolean samplewide) { struct cmd_start_acquisition cmd; int delay = 0, ret; /* Compute the sample rate. */ - if(samplewide && samplerate > MAX_16BIT_SAMPLE_RATE) { + if (samplewide && samplerate > MAX_16BIT_SAMPLE_RATE) { sr_err("fx2lafw: Unable to sample at %" PRIu64 "Hz " - "when collecting 16-bit samples.", samplerate); + "when collecting 16-bit samples.", samplerate); return SR_ERR; }