Fix i2c bus names on Linux
This commit is contained in:
parent
5c3c15f930
commit
745bbac93b
1 changed files with 3 additions and 0 deletions
|
|
@ -247,7 +247,10 @@ void DetectI2CBusses()
|
|||
|
||||
if(test_fd)
|
||||
{
|
||||
memset(device_string, 0x00, sizeof(device_string));
|
||||
read(test_fd, device_string, sizeof(device_string));
|
||||
device_string[strlen(device_string) - 1] = 0x00;
|
||||
|
||||
close(test_fd);
|
||||
|
||||
bus = new i2c_smbus_linux();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue