MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / setHighPower

Method setHighPower

RFM69.cpp:623–627  ·  view source on GitHub ↗

for RFM69 HW/HCW only: you must call setHighPower(true) after initialize() or else transmission won't work

Source from the content-addressed store, hash-verified

621
622// for RFM69 HW/HCW only: you must call setHighPower(true) after initialize() or else transmission won't work
623void RFM69::setHighPower(bool _isRFM69HW_HCW) {
624 _isRFM69HW = _isRFM69HW_HCW;
625 writeReg(REG_OCP, _isRFM69HW ? RF_OCP_OFF : RF_OCP_ON); // disable OverCurrentProtection for HW/HCW
626 setPowerLevel(_powerLevel);
627}
628
629bool RFM69::isHighPower() {
630 return _isRFM69HW;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected