From: HÃ¥vard Espeland Date: Sun, 2 May 2010 17:12:36 +0000 (+0200) Subject: Sigma: Set capture ratio correctly. X-Git-Tag: libsigrok-0.1.0~531 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=11fc8d9d938c2e254c62a40f569a964db79a489e;p=libsigrok.git Sigma: Set capture ratio correctly. --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 014e6679..1152f443 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -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);