]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/testo/protocol.c
usb: Skip add/remove of FD on destroyed source
[libsigrok.git] / src / hardware / testo / protocol.c
index 46e9ae62baf6071233c1df660853e14081b8eefd..9af799c5fcc471f72b21895b53637af77ce98412 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <string.h>
 #include "protocol.h"
 
@@ -81,7 +82,7 @@ SR_PRIV int testo_probe_channels(struct sr_dev_inst *sdi)
                return SR_ERR;
 
        packet_len = 0;
-       while(TRUE) {
+       while (TRUE) {
                if (libusb_bulk_transfer(usb->devhdl, EP_IN, buf, MAX_REPLY_SIZE,
                                &len, 250) < 0)
                        return SR_ERR;