From: Russ Dill Date: Mon, 30 Dec 2013 14:59:55 +0000 (-0800) Subject: zeroplus: Always set DONT_CARE_TRIGGERBAR to 1 X-Git-Tag: libsigrok-0.3.0~344 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bc059b42a26bbfa1d64bbf617abe4d440bdc57c5;p=libsigrok.git zeroplus: Always set DONT_CARE_TRIGGERBAR to 1 Experimentation with the windows driver has found no situation where this is set to anything other than 1. The zerominus software also never sets this to anything other than one. Revert the code change made in 0ab0cb942f. Signed-off-by: Russ Dill --- diff --git a/hardware/zeroplus-logic-cube/analyzer.c b/hardware/zeroplus-logic-cube/analyzer.c index acb97e09..e9780d2d 100644 --- a/hardware/zeroplus-logic-cube/analyzer.c +++ b/hardware/zeroplus-logic-cube/analyzer.c @@ -477,10 +477,7 @@ SR_PRIV void analyzer_configure(libusb_device_handle *devh) __analyzer_set_triggerbar_address(devh, g_triggerbar_addr); /* Set_Dont_Care_TriggerBar */ - if (g_triggerbar_addr) - gl_reg_write(devh, DONT_CARE_TRIGGERBAR, 0x00); - else - gl_reg_write(devh, DONT_CARE_TRIGGERBAR, 0x01); + gl_reg_write(devh, DONT_CARE_TRIGGERBAR, 0x01); /* Enable_Status */ analyzer_set_filter(devh);