temperature reading successul, but i2c sometimes hanging up
This commit is contained in:
@ -28,8 +28,7 @@ ReturnValue_t I2cComIF::initializeInterface(CookieIF * cookie) {
|
||||
|
||||
int fd;
|
||||
std::string deviceFile = i2cCookie->getDeviceFile();
|
||||
/* Opening i2c device in non-blocking mode */
|
||||
fd = open("/dev/i2c-0", O_RDWR);
|
||||
fd = open(deviceFile.c_str(), O_RDWR);
|
||||
if (fd < 0) {
|
||||
sif::error << "I2cComIF: Opening i2c device failed with error code "
|
||||
<< errno << ". Error description: " << strerror(errno)
|
||||
|
Reference in New Issue
Block a user