Fix EOL in sources.
This commit is contained in:
14
battery.cpp
14
battery.cpp
@@ -95,10 +95,10 @@ static int i2c_smbus_access (int fd, char rw, uint8_t command, int size, union i
|
||||
return ioctl (fd, I2C_SMBUS, &args);
|
||||
}
|
||||
|
||||
static int i2c_smbus_write_quick(int fd, uint8_t value)
|
||||
{
|
||||
return i2c_smbus_access(fd, value, 0, I2C_SMBUS_QUICK, NULL);
|
||||
}
|
||||
static int i2c_smbus_write_quick(int fd, uint8_t value)
|
||||
{
|
||||
return i2c_smbus_access(fd, value, 0, I2C_SMBUS_QUICK, NULL);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -123,12 +123,12 @@ static int smbus_open(int dev_address)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (i2c_smbus_write_quick(fd, I2C_SMBUS_WRITE) < 0)
|
||||
{
|
||||
if (i2c_smbus_write_quick(fd, I2C_SMBUS_WRITE) < 0)
|
||||
{
|
||||
printf("Unable to detect SMBUS device: %s\n", strerror(errno));
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
i2c_handle = fd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user