From: magnuskarlsson Date: Sat, 10 May 2014 23:04:58 +0000 (-0700) Subject: fixed a problem with USB defines X-Git-Tag: libsigrok-0.4.0~1126 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=72716f15bebb583a17ed47646724105b11bef4de;p=libsigrok.git fixed a problem with USB defines --- diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 7840b58a..cb66ec98 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -19,11 +19,6 @@ #include "protocol.h" -#define USB_VENDOR_ID 0x0403 -#define USB_DEVICE_ID 0x6010 -#define USB_VENDOR_NAME "Saanlima" -#define USB_IPRODUCT "Pipistrello LX45" - static const int32_t hwcaps[] = { SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, diff --git a/src/hardware/pipistrello-ols/protocol.h b/src/hardware/pipistrello-ols/protocol.h index 64db0acb..e62d8ab2 100644 --- a/src/hardware/pipistrello-ols/protocol.h +++ b/src/hardware/pipistrello-ols/protocol.h @@ -20,6 +20,11 @@ #ifndef LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H #define LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H +#define USB_VENDOR_ID 0x0403 +#define USB_DEVICE_ID 0x6010 +#define USB_VENDOR_NAME "Saanlima" +#define USB_IPRODUCT "Pipistrello LX45" + #include #include #include