Skip to content

Commit 112cbb7

Browse files
committed
RFLink: Milight remote On/Off matches interface
1 parent 48290ea commit 112cbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/RFLinkBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,13 +920,13 @@ bool CRFLinkBase::ParseLine(const std::string &sLine)
920920
if (bHaveRGB)
921921
{
922922
//RRGGBB
923-
_log.Log(LOG_STATUS, "RFLink ID,unit: %x , %x", Node_ID, Child_ID);
924923
SendRGBWSwitch(ID, switchunit, BatteryLevel, rgb, false, tmp_Name);
925924
} else
926925
if (bHaveRGBW)
927926
{
928927
//RRGGBBWW
929-
_log.Log(LOG_STATUS, "RFLink ID,unit: %x , %x", Node_ID, Child_ID);
928+
//_log.Log(LOG_STATUS, "RFLink ID,unit,level,cmd: %x , %x, %x, %x", ID, switchunit, rgbw, switchcmd);
929+
if (switchcmd == "OFF") rgbw = 0;
930930
SendRGBWSwitch(ID, switchunit, BatteryLevel, rgbw, true, tmp_Name);
931931
} else
932932
if (bHaveSwitch && bHaveSwitchCmd)

0 commit comments

Comments
 (0)