temperature reading successul, but i2c sometimes hanging up

This commit is contained in:
2021-01-11 16:56:44 +01:00
parent c73c41b03a
commit adef6eb188
167 changed files with 5938 additions and 20 deletions

View File

@ -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)