kopia lustrzana https://github.com/jgromes/RadioLib
SX1231 - Fixed typo in macro name
rodzic
21e7873e2a
commit
7d6be1d2a2
|
@ -83,13 +83,13 @@ uint8_t SX1231::begin(float freq = 434.0, float br = 48.0, float rxBw = 125.0, f
|
|||
// SX1231 V2a only
|
||||
if(_chipRevision == SX1231_CHIP_REVISION_2_A) {
|
||||
// modify default OOK threshold value
|
||||
state = _mod->SPIsetRegValue(SX1231_REG_TEST_OOK, SX1231_OOK_DELTA_THRESHOLHD);
|
||||
state = _mod->SPIsetRegValue(SX1231_REG_TEST_OOK, SX1231_OOK_DELTA_THRESHOLD);
|
||||
if(state != ERR_NONE) {
|
||||
return(state);
|
||||
}
|
||||
|
||||
// enable OCP with 95 mA limit
|
||||
state = _mod->SPIsetRegValue(RF69_REG_OCP, SX1231_OOK_DELTA_THRESHOLHD, RF69_OCP_ON | RF69_OCP_TRIM, 4, 0);
|
||||
state = _mod->SPIsetRegValue(RF69_REG_OCP, RF69_OCP_ON | RF69_OCP_TRIM, 4, 0);
|
||||
if(state != ERR_NONE) {
|
||||
return(state);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#define SX1231_REG_TEST_OOK 0x6E
|
||||
|
||||
//SX1231_REG_TEST_OOK
|
||||
#define SX1231_OOK_DELTA_THRESHOLHD 0x0C
|
||||
#define SX1231_OOK_DELTA_THRESHOLD 0x0C
|
||||
|
||||
class SX1231: public RF69 {
|
||||
public:
|
||||
|
|
Ładowanie…
Reference in New Issue