]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Set PA7 in 6022BL again before sampling.
authorJan Losinski <redacted>
Thu, 12 Jan 2017 21:09:39 +0000 (22:09 +0100)
committerUwe Hermann <redacted>
Fri, 27 Jan 2017 00:04:02 +0000 (01:04 +0100)
Signed-off-by: Jan Losinski <redacted>
hantek_6022bl.c

index ea80db947dabadb19cce49cbe8de0edd237c5ff5..2c5c4c03aec0bb6c352af5225a565725d74499a7 100644 (file)
@@ -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. */