ftdi_ft4222.c: Fixed bug in gpio configuration
authorHenry Bruce <henry.bruce@intel.com>
Wed, 14 Oct 2015 21:03:34 +0000 (14:03 -0700)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 26 Oct 2015 15:46:54 +0000 (15:46 +0000)
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/usb/ftdi_ft4222.c

index e3f3ce2..cf638a2 100644 (file)
@@ -526,6 +526,7 @@ mraa_ftdi_ft4222()
         sprintf(name, "Pin%d", pinIndex);
         strncpy(sub_plat->pins[pinIndex].name, name, 8);
         sub_plat->pins[pinIndex].capabilites = pinCapsGpio;
+        sub_plat->pins[pinIndex].gpio.mux_total = 0;
     }
 
     int bus = 0;