Fixed Pilight can not send on RX pin (#577)

This commit is contained in:
Leon Kiefer authored and GitHub committed 2020-04-05 14:29:12 -05:00
1 parent bd72075349
commit 0d486633ed
1 file changed
+1
+1
View File
@@ -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));