Skip to content

Commit

Permalink
Add deviceId property to CorsairDeviceInfo object. Fixes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
intrueder committed May 1, 2021
1 parent ff05525 commit 37dce6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CorsairSdk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Napi::Value corsairGetDeviceInfo(const Napi::CallbackInfo &info)
result["capsMask"] = deviceInfo->capsMask;
result["ledsCount"] = deviceInfo->ledsCount;
result["channels"] = channels;
result["deviceId"] = std::string(deviceInfo->deviceId);

channels["channelsCount"] = deviceInfo->channels.channelsCount;
if (deviceInfo->channels.channelsCount > 0) {
Expand Down

0 comments on commit 37dce6a

Please sign in to comment.