From 0d486633edf8e3d1c7e715cd44fdc7da747f644e Mon Sep 17 00:00:00 2001 From: Leon Kiefer Date: Sun, 5 Apr 2020 21:29:12 +0200 Subject: [PATCH] Fixed Pilight can not send on RX pin (#577) --- main/ZgatewayPilight.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/main/ZgatewayPilight.ino b/main/ZgatewayPilight.ino index 88e1d48..0bade4e 100644 --- a/main/ZgatewayPilight.ino +++ b/main/ZgatewayPilight.ino @@ -60,6 +60,7 @@ void setupPilight() #ifndef ZgatewayRF &&ZgatewayRF2 //receiving with Pilight is not compatible with ZgatewayRF or RF2 or RF315 as far as I can tell rf.setCallback(pilightCallback); rf.initReceiver(RF_RECEIVER_PIN); + pinMode(RF_EMITTER_PIN, OUTPUT); // Set this here, because if this is the RX pin it was reset to INPUT by Serial.end(); Log.notice(F("RF_EMITTER_PIN: %d " CR), RF_EMITTER_PIN); Log.notice(F("RF_RECEIVER_PIN: %d " CR), RF_RECEIVER_PIN); Log.trace(F("ZgatewayPilight setup done " CR));