Skip to content

Commit

Permalink
- noolite small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dima117 committed Sep 13, 2016
1 parent 1dadbf5 commit 010d726
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ThinkingHome.Plugins.NooLite/NooLitePlugin.cs
Expand Up @@ -106,10 +106,8 @@ public void SetRgbLevel(int channel, int levelR, int levelG, int levelB)
}

[ScriptCommand("nooliteSendCommand")]
public void SendCommand(int command, int channel, int level)
public void SendCommand(int command, int channel, int level = 0)
{
//Debugger.Launch();

lock (pcLock)
{
try
Expand Down Expand Up @@ -138,8 +136,6 @@ public void SendCommand(int command, int channel, int level)
[ScriptCommand("nooliteSendLedCommand")]
public void SendLedCommand(int ledCommand, int channel, int levelR = 0, int levelG = 0, int levelB = 0)
{
//Debugger.Launch();

lock (pcLock)
{
try
Expand All @@ -150,7 +146,7 @@ public void SendLedCommand(int ledCommand, int channel, int levelR = 0, int leve
{
var pc11XxLedCommand = (PC11XXLedCommand)ledCommand;
adapter.SendLedCommand(pc11XxLedCommand, (byte)channel, (byte)levelR, (byte)levelG, (byte)levelB);
Logger.Info("send command {0}: levelR {1} levelG {2} levelB{3} in channel {4}", pc11XxLedCommand, levelR, levelG, levelB, channel);
Logger.Info("send command {0}: levelR {1} levelG {2} levelB {3} in channel {4}", pc11XxLedCommand, levelR, levelG, levelB, channel);
}
else
{
Expand Down

0 comments on commit 010d726

Please sign in to comment.