upg: fix i2c read error

decode read date as float instead of int