properly order MODEs and add CAD

This commit is contained in:
Morgan 'ARR\!' Allen 2020-02-22 08:33:34 -08:00
parent 0c394d30a7
commit c01099eb16

View file

@ -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