OCP limit into SX126x class where it belongs.

This commit is contained in:
Solanaceae 2021-12-02 20:46:36 -07:00
parent ab0a06e536
commit 6bd495a491
2 changed files with 3 additions and 5 deletions

View File

@ -88,11 +88,7 @@ class RadioLibInterface : public RadioInterface, protected concurrency::Notified
*/
const uint8_t syncWord = 0x2b;
#ifdef USE_SX1262
float currentLimit = 140; //SX1262 higher limit - this should allow for extra current used by the PA at +22dBm.
#else
float currentLimit = 100; // 100mA OCP - Should be acceptable for RFM95/SX127x chipset.
#endif
LockingModule module; // The HW interface to the radio

View File

@ -29,6 +29,8 @@ class SX126xInterface : public RadioLibInterface
protected:
float currentLimit = 140; // Higher OCP limit for SX126x PA
/**
* Specific module instance
*/