From 487b2ff9fb7c4853958a333069d92c3863e09fa7 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 22 Jul 2018 18:04:09 +0200 Subject: [PATCH] senddata.cpp bugfix Cayenneport --- src/senddata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/senddata.cpp b/src/senddata.cpp index 3f39faea..fc0123b7 100644 --- a/src/senddata.cpp +++ b/src/senddata.cpp @@ -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));