upg: fix i2c read error

decode read date as float instead of int
Merge pull request #13 from andrea-83/linino-io

fix: i2c read error
Merge pull request #14 from ideino/linino-io

Linino io