From d273598d4f42bd76284cb5669dbb03f20fb457e7 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Wed, 1 Jan 2020 20:32:16 -0800 Subject: [PATCH] dont reset the address pointer, it only results in lost data --- main/esp32-lora.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/esp32-lora.c b/main/esp32-lora.c index fac071b..15123f1 100644 --- a/main/esp32-lora.c +++ b/main/esp32-lora.c @@ -2,6 +2,7 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" +#include "freertos/queue.h" #include "esp_log.h" #include "esp_heap_caps.h" @@ -344,7 +345,7 @@ void lora32_handle_dio0(void *arg) { ESP_LOGD(TAG, "lora32_handle_dio0: %s", msg); lora->fifoIdx = 0; - lora32_write_reg(lora, REG_FIFO_ADDR_PTR, 0); + //lora32_write_reg(lora, REG_FIFO_ADDR_PTR, 0); lora->receive((uint8_t*)&msg, len); }