[SX127x] Update macro names

pull/406/head
jgromes 2021-11-14 13:00:34 +01:00
rodzic 22ae7dfd9b
commit 03126f79d3
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -944,11 +944,11 @@ int16_t SX127x::setOokPeakThresholdDecrement(uint8_t value) {
}
int16_t SX127x::enableBitSync() {
return(_mod->SPIsetRegValue(SX127X_REG_OOK_PEAK, SX127X_BIT_SYNC_ON, 5, 5, 5));
return(_mod->SPIsetRegValue(RADIOLIB_SX127X_REG_OOK_PEAK, RADIOLIB_SX127X_BIT_SYNC_ON, 5, 5, 5));
}
int16_t SX127x::disableBitSync() {
return(_mod->SPIsetRegValue(SX127X_REG_OOK_PEAK, SX127X_BIT_SYNC_OFF, 5, 5, 5));
return(_mod->SPIsetRegValue(RADIOLIB_SX127X_REG_OOK_PEAK, RADIOLIB_SX127X_BIT_SYNC_OFF, 5, 5, 5));
}
int16_t SX127x::setOOK(bool enableOOK) {

Wyświetl plik

@ -914,7 +914,7 @@ class SX127x: public PhysicalLayer {
/*!
\brief Period of decrement of the RSSI threshold in the OOK demodulator.
\param value Use defines SX127X_OOK_PEAK_THRESH_DEC_X_X_CHIP
\param value Use defines RADIOLIB_SX127X_OOK_PEAK_THRESH_DEC_X_X_CHIP
\returns \ref status_codes
*/
@ -923,7 +923,7 @@ class SX127x: public PhysicalLayer {
/*!
\brief Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Peak mode is used.
\param value The actual value is devided by 2 because (0.5db step). ie: value=12 means 6dB
\param value Threshold level in steps of 0.5 dB.
\returns \ref status_codes
*/