Clean up Linux LED controller

This commit is contained in:
Adam Honse
2025-10-20 12:18:56 -05:00
parent c1781bc4cb
commit d4e802f3b3
2 changed files with 26 additions and 17 deletions

View File

@@ -30,10 +30,17 @@ RGBController_LinuxLED::RGBController_LinuxLED(LinuxLEDController* controller_pt
type = DEVICE_TYPE_LEDSTRIP;
description = "Linux Sysfs LED Device";
location = "R: " + controller->GetRedPath() + "\r\n" +
if(controller->GetRgbPath().empty())
{
location = "R: " + controller->GetRedPath() + "\r\n" +
"G: " + controller->GetGreenPath() + "\r\n" +
"B: " + controller->GetBluePath() + "\r\n" +
"M: " + controller->GetRgbPath();
"B: " + controller->GetBluePath();
}
else
{
location = controller->GetRgbPath();
}
mode Direct;
Direct.name = "Direct";
Direct.value = 0;