Small fix on BME280 Config & CC1101-TXPower Throttle (#1382)
* https://github.com/1technophile/OpenMQTTGateway/issues/1380 CC1101 TXPower selection * Creates the possability the define SDA/SCL Pins correct through a compiler switch from the platformio.ini Sample: '-DBME280_PIN_SDA=0' '-DBME280_PIN_SCL=2'
This commit is contained in:
1 parent
c1cedcf333
commit
5fcf02af5a
4 files changed
+31
-8
No files matched your search
@@ -184,6 +184,7 @@ void MQTTtoRF(char* topicOri, char* datacallback) {
|
||||
# ifdef ZradioCC1101 // set Receive off and Transmitt on
|
||||
disableActiveReceiver();
|
||||
ELECHOUSE_cc1101.SetTx(receiveMhz);
|
||||
Log.notice(F("Transmit mhz: %F" CR), receiveMhz);
|
||||
# endif
|
||||
mySwitch.disableReceive();
|
||||
mySwitch.enableTransmit(RF_EMITTER_GPIO);
|
||||
@@ -256,6 +257,10 @@ void MQTTtoRF(char* topicOri, JsonObject& RFdata) { // json object decoding
|
||||
Log.notice(F("RF Pulse Lgth: %d" CR), valuePLSL);
|
||||
Log.notice(F("Bits nb: %d" CR), valueBITS);
|
||||
# ifdef ZradioCC1101 // set Receive off and Transmitt on
|
||||
int txPower = RFdata["txpower"] | RF_CC1101_TXPOWER;
|
||||
ELECHOUSE_cc1101.setPA((int)txPower);
|
||||
Log.notice(F("CC1101 TX Power: %d" CR), txPower);
|
||||
|
||||
float trMhz = RFdata["mhz"] | CC1101_FREQUENCY;
|
||||
if (validFrequency((int)trMhz)) {
|
||||
disableActiveReceiver();
|
||||
|
||||
Reference in new issue
Block a user