From e8b52e7c78326245e3da5367c3b739145888f13e Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Wed, 6 Apr 2022 15:46:02 -0700 Subject: [PATCH] (hopefully) basic sensible default radio settings --- include/esp32-lora.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/esp32-lora.h b/include/esp32-lora.h index 1790c95..34b265a 100644 --- a/include/esp32-lora.h +++ b/include/esp32-lora.h @@ -80,6 +80,17 @@ #define ERR_LOR_VERSION_MISMATCH (01) +#define LORA32_DEFAULT_CONFIG {\ + .bandwidth = B250,\ + .codingRate = 5,\ + .frequency = 915000000,\ + .spreadingFactor = 11,\ + .preamble = DEFAULT_PREAMBLE,\ + .implicitHeader = false,\ + .useCRC = false,\ + .fifoIdx = 0,\ +} + enum freq { F433, F866, F915 } lora32_freq;