Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
Fix Corsair and Lightpack loading issues
Browse files Browse the repository at this point in the history
Corsair devices were loading when they were not supposed to, and were
not loading when they were supposed to.
Lightpack devices were loading when they were not supposed to.
  • Loading branch information
Archomeda committed Jan 4, 2016
1 parent 55299e1 commit d6f71ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Devices/DeviceCorsair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ namespace lightfx {
this->library->CorsairPerformProtocolHandshake();
if (const auto error = this->library->CorsairGetLastError()) {
LOG_ERROR(L"Handshake with Corsair failed: " + this->library->CorsairErrorToString(error));
} else {
this->SetEnabled(false);
return false;
} else {
this->Reset();
this->ledPositions = this->library->CorsairGetLedPositions();
}
Expand Down
2 changes: 2 additions & 0 deletions src/Devices/DeviceLightpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ namespace lightfx {

this->Reset();
this->DisconnectAPI();
} else {
return false;
}
} else {
return false;
Expand Down

0 comments on commit d6f71ee

Please sign in to comment.