Skip to content

Commit

Permalink
Update rest_lights.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar authored and manup committed Oct 25, 2019
1 parent cfed866 commit 262bdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_lights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp)
copyTaskReq(taskRef, task);
uint8_t moveToPct = 0x00;
moveToPct = bri * 100 / 255; // Percent 0 - 100 (0x00 - 0x64)
if (taskRef.lightNode->modelId().startsWith(QLatin1String("lumi.curtain")) || (taskRef.lightNode->modelId() == QLatin1String("Shutter switch with neutral")) )
if (taskRef.lightNode->modelId().startsWith(QLatin1String("lumi.curtain")) )
{
moveToPct = 100 - moveToPct;
}
Expand Down

0 comments on commit 262bdde

Please sign in to comment.