mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
ims: Small logging change for C init method
Added a bit more description if the library cannot set I2C standard mode. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
849711c47d
commit
f914159e21
@ -63,7 +63,9 @@ ims_context* ims_init(int16_t i2c_bus, int16_t i2c_address)
|
||||
/* This device must run at 100kHz */
|
||||
if (mraa_i2c_frequency(dev->_i2c_context, MRAA_I2C_STD))
|
||||
{
|
||||
syslog(LOG_ERR, "%s: mraa_i2c_frequency() failed\n", __FUNCTION__);
|
||||
syslog(LOG_ERR, "%s: mraa_i2c_frequency() failed. %s\n",
|
||||
__FUNCTION__,
|
||||
"This device requires I2C standard mode (100 kb/s)");
|
||||
goto ims_init_fail;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user