(DIO) More fix for version 0.5 and 0.4 spec.
Merge pull request #115 from 130s/v0.5_dio_fix

(DIO) More fix for version 0.5 spec.