Fix i2c bus names on Linux

This commit is contained in:
Adam Honse committed 2020-03-20 10:20:46 -05:00
1 parent 5c3c15f930
commit 745bbac93b
1 file changed
+3
+3
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();