X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;fp=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;h=a9812ce96cf1379a88dcb9af92da797c10fd04fa;hb=c36a7d84ca3603705c72bd0e026edec9f8869db9;hp=8e4efb9407a88ba725d936dc95c8ac5018504eab;hpb=29f15d52cb1c2ab6b284ebe04f57f71bcffc5506;p=libsigrok.git diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index 8e4efb94..a9812ce9 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -497,10 +497,12 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) devc->capture_flags & CAPTURE_FLAG_RLE ? "on" : "off", devc->capture_flags & CAPTURE_FLAG_NOISE_FILTER ? "on": "off", devc->capture_flags & CAPTURE_FLAG_DEMUX ? "on" : "off"); + /* * Enable/disable OLS channel groups in the flag register according * to the channel mask. 1 means "disable channel". */ + devc->capture_flags &= ~0x3c; devc->capture_flags |= ~(ols_changrp_mask << 2) & 0x3c; /* RLE mode is always zero, for now. */