From c01099eb16d1b5841cbad23f92182499ba10cbc2 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Sat, 22 Feb 2020 08:33:34 -0800 Subject: [PATCH] properly order MODEs and add CAD --- include/esp32-lora.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/esp32-lora.h b/include/esp32-lora.h index 13260ab..acbb6ae 100644 --- a/include/esp32-lora.h +++ b/include/esp32-lora.h @@ -38,12 +38,13 @@ #define REG_VERSION 0x42 // modes -#define MODE_LONG_RANGE_MODE 0x80 #define MODE_SLEEP 0x00 #define MODE_STANDBY 0x01 #define MODE_TX 0x03 #define MODE_RX_CONTINUOUS 0x05 #define MODE_RX_SINGLE 0x06 +#define MODE_CAD_DETECT 0x07 +#define MODE_LONG_RANGE_MODE 0x80 // PA config #define PA_BOOST 0x80