dont reset the address pointer, it only results in lost data

This commit is contained in:
Morgan 'ARR\!' Allen 2020-01-01 20:32:16 -08:00
parent fa17807144
commit d273598d4f

View file

@ -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);
}