From: Uwe Hermann Date: Sat, 8 Apr 2017 15:10:31 +0000 (+0200) Subject: scopes: Initialize PORTA/C/E consistently for all devices. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.6~22 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4d971e019068b5747fe439b177c57cd635f3b9dd;p=sigrok-firmware-fx2lafw.git scopes: Initialize PORTA/C/E consistently for all devices. --- diff --git a/hantek_6022be.c b/hantek_6022be.c index 04ca6eb2..bfd4fd44 100644 --- a/hantek_6022be.c +++ b/hantek_6022be.c @@ -437,10 +437,12 @@ static void main(void) RENUMERATE(); + PORTECFG = 0; PORTCCFG = 0; PORTACFG = 0; + OEE = 0xff; OEC = 0xff; - OEA = 0x80; + OEA = 0xff; while (TRUE) { if (dosud) { diff --git a/hantek_6022bl.c b/hantek_6022bl.c index af445cf2..fa595b4a 100644 --- a/hantek_6022bl.c +++ b/hantek_6022bl.c @@ -438,8 +438,10 @@ static void main(void) RENUMERATE(); + PORTECFG = 0; PORTCCFG = 0; PORTACFG = 0; + OEE = 0xff; OEC = 0xff; OEA = 0xff; diff --git a/sainsmart_dds120.c b/sainsmart_dds120.c index 1ea47808..8a05df19 100644 --- a/sainsmart_dds120.c +++ b/sainsmart_dds120.c @@ -528,12 +528,12 @@ static void main(void) RENUMERATE_UNCOND(); + PORTECFG = 0; PORTCCFG = 0; PORTACFG = 0; - PORTECFG = 0; - OEE = 0xFF; + OEE = 0xff; OEC = 0xff; - OEA = 0x80; + OEA = 0xff; SET_ANALOG_MODE();