[RF] ZgatewatPilight: toggle RawEnabled only if Pilight is active receiver (#2159)
This commit is contained in:
1 parent
e683fbbd18
commit
7f542c8347
2 files changed
+10
-5
No files matched your search
@@ -182,10 +182,12 @@ void XtoPilight(const char* topicOri, JsonObject& Pilightdata) {
|
||||
if (Pilightdata.containsKey("rawEnabled")) {
|
||||
Log.notice(F("Setting PiLight raw output enabled: %T" CR), (bool)Pilightdata["rawEnabled"]);
|
||||
pilightRawEnabled = (bool)Pilightdata["rawEnabled"];
|
||||
disablePilightReceive();
|
||||
delay(1);
|
||||
enablePilightReceive();
|
||||
success = true;
|
||||
if (currentReceiver == ACTIVE_PILIGHT) {
|
||||
disablePilightReceive();
|
||||
delay(1);
|
||||
enablePilightReceive();
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user