Skip to content

Commit c0efa1a

Browse files
committed
WOL, only allow ON command
1 parent f625f6d commit c0efa1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hardware/WOL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ bool CWOL::WriteToHardware(const char *pdata, const unsigned char length)
133133
if (packettype!=pTypeLighting2)
134134
return false;
135135

136+
if (pSen->LIGHTING2.cmnd != light2_sOn) // only send WOL with ON command
137+
return true;
138+
136139
int nodeID=(pSen->LIGHTING2.id3<<8)|pSen->LIGHTING2.id4;
137140

138141
std::stringstream szQuery;

0 commit comments

Comments
 (0)