]> sigrok.org Git - libsigrok.git/commitdiff
zeroplus: Always set DONT_CARE_TRIGGERBAR to 1
authorRuss Dill <redacted>
Mon, 30 Dec 2013 14:59:55 +0000 (06:59 -0800)
committerBert Vermeulen <redacted>
Fri, 3 Jan 2014 14:09:10 +0000 (15:09 +0100)
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 <redacted>
hardware/zeroplus-logic-cube/analyzer.c

index acb97e09db2af2df8beadfe564ddbe4c7daf9a62..e9780d2dd0bb5f90e56dfb5f3995c6bf25ad0526 100644 (file)
@@ -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);