SX1231 - Fixed typo in macro name

pull/1/head
Jan Gromeš 2018-07-16 09:09:17 +02:00
rodzic 21e7873e2a
commit 7d6be1d2a2
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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);
}

Wyświetl plik

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