byte to hex to int working for battery