]> sigrok.org Git - libsigrok.git/commitdiff
Sigma: Limit number of edge triggers to 1.
authorHåvard Espeland <redacted>
Sat, 15 Jan 2011 19:01:00 +0000 (20:01 +0100)
committerHåvard Espeland <redacted>
Sat, 15 Jan 2011 19:01:00 +0000 (20:01 +0100)
Actually, Sigma supports 2 rising/falling triggers,
but they are ORed and the current trigger syntax
does not permit ORed triggers.

hardware/asix-sigma/asix-sigma.c

index af8e6d27664d6c21a9fd13010b958a744389a35d..7cc7c9da901b97a9d5abf9d2f9561efdd6d3bf8f 100644 (file)
@@ -643,8 +643,13 @@ static int configure_probes(struct sigrok_device_instance *sdi, GSList *probes)
                                ++trigger_set;
                        }
 
-                       if (trigger_set > 2) {
-                               g_warning("Asix Sigma only supports 2 rising/"
+                        /*
+                         * Actually, Sigma supports 2 rising/falling triggers,
+                         * but they are ORed and the current trigger syntax
+                         * does not permit ORed triggers.
+                         */
+                       if (trigger_set > 1) {
+                               g_warning("Asix Sigma only supports 1 rising/"
                                          "falling triggers.");
                                return SIGROK_ERR;
                        }