X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbeaglelogic%2Fprotocol.c;h=0fc6f123942c3dce6d6f4bb17571a9745a652c94;hb=d6d87fa2a28edbfa0f1c66ef4b03c9cd8bda095e;hp=621a73dcece1492020566f565fa9017a9d900b19;hpb=3124d3bc48535f793d18d1cc7a0fb28f54e672dc;p=libsigrok.git diff --git a/src/hardware/beaglelogic/protocol.c b/src/hardware/beaglelogic/protocol.c index 621a73dc..0fc6f123 100644 --- a/src/hardware/beaglelogic/protocol.c +++ b/src/hardware/beaglelogic/protocol.c @@ -99,7 +99,7 @@ SR_PRIV int beaglelogic_native_receive_data(int fd, int revents, void *cb_data) if ((devc->offset += packetsize) >= devc->buffersize) { /* One shot capture, we abort and settle with less than * the required number of samples */ - if (devc->triggerflags) + if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS) devc->offset = 0; else packetsize = 0; @@ -181,7 +181,7 @@ SR_PRIV int beaglelogic_tcp_receive_data(int fd, int revents, void *cb_data) if ((devc->offset += packetsize) >= devc->buffersize) { /* One shot capture, we abort and settle with less than * the required number of samples */ - if (devc->triggerflags) + if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS) devc->offset = 0; else packetsize = 0;