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
1 changed files with 2 additions and 1 deletions

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