From: Jan Losinski Date: Thu, 12 Jan 2017 21:09:39 +0000 (+0100) Subject: Set PA7 in 6022BL again before sampling. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.5~7 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=59562384e15df70a4e836637300b71c800e35a8a;p=sigrok-firmware-fx2lafw.git Set PA7 in 6022BL again before sampling. Signed-off-by: Jan Losinski --- diff --git a/hantek_6022bl.c b/hantek_6022bl.c index ea80db94..2c5c4c03 100644 --- a/hantek_6022bl.c +++ b/hantek_6022bl.c @@ -164,6 +164,9 @@ static void start_sampling(void) { int i; + /* Set analog mode. */ + PA7 = 1; + clear_fifo(); for (i = 0; i < 1000; i++); @@ -387,7 +390,7 @@ static void init(void) EP4CFG = 0; EP8CFG = 0; - /* Set analog mode */ + /* Set analog mode. */ PA7 = 1; /* In idle mode tristate all outputs. */