fix i2c sonar compilation error
Signed-off-by: wareck <wareck@gmail.com>