]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/openbench-logic-sniffer/protocol.c
ols: drop wrong usage of macro
[libsigrok.git] / src / hardware / openbench-logic-sniffer / protocol.c
index 3bfb890fddf6623f8af8af9495d667b25d71b028..0041b21a3b744144252e611d8ee8a9bb6c15089d 100644 (file)
@@ -365,7 +365,7 @@ SR_PRIV int ols_receive_data(int fd, int revents, void *cb_data)
        }
 
        num_ols_changrp = 0;
-       for (i = NUM_CHANNELS; i > 0x02; i /= 2) {
+       for (i = 0x20; i > 0x02; i >>= 1) {
                if ((devc->flag_reg & i) == 0) {
                        num_ols_changrp++;
                }