Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

mods/modlora.c: Setting the maximum payload for LoRaRAW packets explicitly to be able to receive packets bigger than 64 bytes. #13

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions esp32/mods/modlora.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,8 @@ static void lora_radio_setup (lora_init_cmd_data_t *init_data) {
symbol_to, LORA_FIX_LENGTH_PAYLOAD_OFF,
0, true, 0, 0, init_data->rxiq, true);

Radio.SetMaxPayloadLength(MODEM_LORA, LORA_PAYLOAD_SIZE_MAX);

if (init_data->power_mode == E_LORA_MODE_ALWAYS_ON) {
// start listening
Radio.Rx(LORA_RX_TIMEOUT);
Expand Down