]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - sainsmart_dds120.c
scopes: Initialize PORTA/C/E consistently for all devices.
[sigrok-firmware-fx2lafw.git] / sainsmart_dds120.c
index 1ea478087ed6307841057356e7feb6626b7c25c4..8a05df195aa25bd7f871350689a0d14871b41bcb 100644 (file)
@@ -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();