From f581b7425123296d2031bd1944b5ae6e9eb20c92 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Sat, 29 Feb 2020 15:56:47 -0800 Subject: [PATCH] oh yeah, make idf compat --- CMakeLists.txt | 5 +++++ main/esp32-lora.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d501b26 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +idf_component_register(SRCS + "main/esp32-lora.c" + + INCLUDE_DIRS "include" +) diff --git a/main/esp32-lora.c b/main/esp32-lora.c index d1cd17f..bb6df75 100644 --- a/main/esp32-lora.c +++ b/main/esp32-lora.c @@ -37,7 +37,7 @@ lora32_cfg_t lora32_create() { .implicitHeader = false, .nss = CONFIG_LORA32_NSS_PIN, .reset = CONFIG_LORA32_RESET_PIN, - .frequency = 866000000, + .frequency = 915000000, .preamble = DEFAULT_PREAMBLE, .spreadingFactor = DEFAULT_SF, .spi = spi,