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 2fcb06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 2fcb06b

Please sign in to comment.