diff options
Diffstat (limited to 'daemon/i2c_driver_i2cdev.cc')
-rw-r--r-- | daemon/i2c_driver_i2cdev.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/i2c_driver_i2cdev.cc b/daemon/i2c_driver_i2cdev.cc index b4f2280..acc02ac 100644 --- a/daemon/i2c_driver_i2cdev.cc +++ b/daemon/i2c_driver_i2cdev.cc @@ -59,7 +59,7 @@ bool I2cDriverI2cDev::Init(uint32_t bus_id, uint32_t address) { if (fd < 0) return false; uintptr_t tmp_addr = address; - if (char_interface_->Ioctl(fd, I2C_SLAVE, (void*)tmp_addr) < 0) { + if (char_interface_->Ioctl(fd, I2C_SLAVE, reinterpret_cast<void*>(tmp_addr)) < 0) { LOG(ERROR) << "Failed to set I2C slave"; char_interface_->Close(fd); return false; |