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

Method reinitRadio

RFM69.cpp:1082–1088  ·  view source on GitHub ↗

============================================================================= reinitRadio() - use base class initialization with saved values =============================================================================

Source from the content-addressed store, hash-verified

1080// reinitRadio() - use base class initialization with saved values
1081//=============================================================================
1082bool RFM69::reinitRadio() {
1083 bool haveEncryptKey = _haveEncryptKey;
1084 if (!initialize(_freqBand, _address, _networkID)) return false;
1085 if (haveEncryptKey) encrypt(_encryptKey); // Restore the encryption key if necessary
1086 if (_isHighSpeed) writeReg(REG_LNA, (readReg(REG_LNA) & ~0x3) | RF_LNA_GAINSELECT_AUTO);
1087 return true;
1088}
1089
1090static uint32_t getUsForResolution(uint8_t resolution) {
1091 switch (resolution) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected