mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-06 13:45:37 -04:00
Fix i2c bus names on Linux
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user