SetTime: Fixed a few bugs in i2c-device.cpp