LORA: Default CRC to true

#445
This commit is contained in:
1technophile committed 2019-09-20 23:34:04 +02:00
1 parent 818be244dd
commit 513cc4b7ac
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ void LORAtoMQTT(){
int codingRateDenominator = LORAdata["codingrate"]|LORA_CODING_RATE;
int preambleLength = LORAdata["preamblelength"]|LORA_PREAMBLE_LENGTH;
byte syncWord = LORAdata["syncword"]|LORA_SYNC_WORD;
bool Crc = LORAdata["enablecrc"];
bool Crc = LORAdata["enablecrc"]|DEFAULT_CRC;
if (message) {
LoRa.setTxPower(txPower);
LoRa.setFrequency(frequency);
+1
View File
@@ -43,6 +43,7 @@ extern void MQTTtoLORA(char * topicOri, JsonObject& RFdata);
#define LORA_CODING_RATE 5
#define LORA_PREAMBLE_LENGTH 8
#define LORA_SYNC_WORD 0x12
#define DEFAULT_CRC true
#define repeatLORAwMQTT false // do we repeat a received signal by using mqtt with LORA gateway