dont reset the address pointer, it only results in lost data
This commit is contained in:
parent
fa17807144
commit
d273598d4f
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
|
#include "freertos/queue.h"
|
||||||
|
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "esp_heap_caps.h"
|
#include "esp_heap_caps.h"
|
||||||
|
@ -344,7 +345,7 @@ void lora32_handle_dio0(void *arg) {
|
||||||
ESP_LOGD(TAG, "lora32_handle_dio0: %s", msg);
|
ESP_LOGD(TAG, "lora32_handle_dio0: %s", msg);
|
||||||
|
|
||||||
lora->fifoIdx = 0;
|
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);
|
lora->receive((uint8_t*)&msg, len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue