Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
CalcProgrammer1 committed Sep 1, 2022
1 parent 9fe664e commit 8dd50f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
#define POLYCHROME_USB_INIT 0xA4
#define POLYCHROME_USB_COMMIT 0x12

const char* polychrome_USB_zone_names[] =
{
"RGB LED 1 Header",
"RGB LED 2 Header",
"Addressable Header 1",
"Addressable Header 2",
"PCH",
"IO Cover",
"PCB",
"Audio",
};

PolychromeUSBController::PolychromeUSBController(hid_device* dev_handle, const char* path)
{
DMIInfo dmi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,7 @@ enum
POLYCHROME_USB_ZONE_UNAVAILABLE = 0x1E, // Value from LEDCOUNT CFG if zone not present
};

const char* polychrome_USB_zone_names[] =
{
"RGB LED 1 Header",
"RGB LED 2 Header",
"Addressable Header 1",
"Addressable Header 2",
"PCH",
"IO Cover",
"PCB",
"Audio",
};
extern const char* polychrome_USB_zone_names[];

enum
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void RGBController_AlienwareAW510K::DeviceUpdateLEDs()

void RGBController_AlienwareAW510K::UpdateZoneLEDs(int zone)
{
controller->SetDirect( RGBGetRValue(zones[zone].colors[0]), RGBGetGValue(zones[zone].colors[0]), RGBGetBValue(zones[zone].colors[0]));
controller->SetDirect((unsigned char) zone, RGBGetRValue(zones[zone].colors[0]), RGBGetGValue(zones[zone].colors[0]), RGBGetBValue(zones[zone].colors[0]));
}

void RGBController_AlienwareAW510K::UpdateSingleLED(int led)
Expand Down
2 changes: 1 addition & 1 deletion super_io/super_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int superio_inb(int ioreg, int reg)
lseek(dev_port_fd, ioreg, SEEK_SET);
if(write(dev_port_fd, &reg, 1) == -1)
{
return;
return -1;
}

if(read(dev_port_fd, &temp, 1) == -1)
Expand Down

0 comments on commit 8dd50f4

Please sign in to comment.