Skip to content

Commit

Permalink
Update ZgatewayRF.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Dec 1, 2023
1 parent 1297f91 commit df674b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main/ZgatewayRF.ino
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ void MQTTtoRF(char* topicOri, JsonObject& RFdata) { // json object decoding
Log.notice(F("RF Protocol:%d" CR), valuePRT);
Log.notice(F("RF Pulse Lgth: %d" CR), valuePLSL);
Log.notice(F("Bits nb: %d" CR), valueBITS);
disableCurrentReceiver();
# ifdef ZradioCC1101
disableCurrentReceiver();
initCC1101();
int txPower = RFdata["txpower"] | RF_CC1101_TXPOWER;
ELECHOUSE_cc1101.setPA((int)txPower);
Expand All @@ -246,7 +246,6 @@ void MQTTtoRF(char* topicOri, JsonObject& RFdata) { // json object decoding
ELECHOUSE_cc1101.SetTx(txFrequency);
Log.notice(F("Transmit frequency: %F" CR), txFrequency);
# endif
mySwitch.disableReceive();
mySwitch.enableTransmit(RF_EMITTER_GPIO);
mySwitch.setRepeatTransmit(valueRPT);
mySwitch.setProtocol(valuePRT, valuePLSL);
Expand Down

0 comments on commit df674b7

Please sign in to comment.