Fix i2c bus names on Linux

This commit is contained in:
Adam Honse 2020-03-20 10:20:46 -05:00
parent 5c3c15f930
commit 745bbac93b

View file

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