X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fzeroplus-logic-cube%2Fanalyzer.c;h=321b17c0ed54f11a56c2ac09cf6f8d1e0e0240ba;hb=bbcffe51d29343f7648e1e2f3b925dd571984bd3;hp=94cf0689d2b1035c75246e8366168ec1b7812c44;hpb=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52;p=libsigrok.git diff --git a/src/hardware/zeroplus-logic-cube/analyzer.c b/src/hardware/zeroplus-logic-cube/analyzer.c index 94cf0689..321b17c0 100644 --- a/src/hardware/zeroplus-logic-cube/analyzer.c +++ b/src/hardware/zeroplus-logic-cube/analyzer.c @@ -310,7 +310,7 @@ static int __analyzer_set_freq(libusb_device_handle *devh, int freq, int scale) { 1, FREQ_SCALE_KHZ, 64, 5, 5 }, { 500, FREQ_SCALE_HZ, 64, 10, 5 }, { 100, FREQ_SCALE_HZ, 68, 5, 8 }, - { 0, 0, 0, 0, 0 } + ALL_ZERO }; int i; @@ -420,7 +420,7 @@ SR_PRIV void analyzer_read_start(libusb_device_handle *devh) } SR_PRIV int analyzer_read_data(libusb_device_handle *devh, void *buffer, - unsigned int size) + unsigned int size) { return gl_read_bulk(devh, buffer, size); } @@ -555,7 +555,7 @@ SR_PRIV void analyzer_add_filter(int channel, int type) } g_filter_status[i] |= - 1 << ((2 * channel) + (type == FILTER_LOW ? 1 : 0)); + 1 << ((2 * channel) + (type == FILTER_LOW ? 1 : 0)); g_filter_enable = 1; }