]> sigrok.org Git - libsigrok.git/commitdiff
Sigma: Set capture ratio correctly.
authorHåvard Espeland <redacted>
Sun, 2 May 2010 17:12:36 +0000 (19:12 +0200)
committerHåvard Espeland <redacted>
Sun, 2 May 2010 19:59:14 +0000 (21:59 +0200)
hardware/asix-sigma/asix-sigma.c

index 014e6679c5f4643bf36d086a04fb808d0b8de0ec..1152f443c32b835bf4d09202ee5852fdacfaa870 100644 (file)
@@ -1158,7 +1158,7 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        }
 
        /* Setup maximum post trigger time. */
-       sigma_set_register(WRITE_POST_TRIGGER, (capture_ratio * 256) / 100);
+       sigma_set_register(WRITE_POST_TRIGGER, (capture_ratio * 255) / 100);
 
        /* Start acqusition. */
        gettimeofday(&start_tv, 0);