senddata.cpp bugfix Cayenneport

This commit is contained in:
Klaus K Wilting 2018-07-22 18:04:09 +02:00
parent 73f19ac654
commit 487b2ff9fb

View File

@ -9,7 +9,7 @@ void senddata(uint8_t port) {
ESP_LOGI(TAG, "LoRa busy, data not sent");
sprintf(display_line7, "LORA BUSY");
} else {
LMIC_setTxData2(PAYLOAD_ENCODER == 4 ? CAYENNEPORT : port,
LMIC_setTxData2(PAYLOAD_ENCODER <= 3 ? port : CAYENNEPORT,
payload.getBuffer(), payload.getSize(),
(cfg.countermode & 0x02));