Fixing a bug on the DigitalIO feature