Add readPowerLevel function
This commit is contained in:
parent
7f4a88b233
commit
5dedaea406
|
|
@ -844,6 +844,11 @@ uint8_t RFM69::readTemperature(uint8_t calFactor) // returns centigrade
|
||||||
return ~readReg(REG_TEMP2) + COURSE_TEMP_COEF + calFactor; // 'complement' corrects the slope, rising temp = rising val
|
return ~readReg(REG_TEMP2) + COURSE_TEMP_COEF + calFactor; // 'complement' corrects the slope, rising temp = rising val
|
||||||
} // COURSE_TEMP_COEF puts reading in the ballpark, user can add additional correction
|
} // COURSE_TEMP_COEF puts reading in the ballpark, user can add additional correction
|
||||||
|
|
||||||
|
uint8_t RFM69::readPowerLevel() // get powerLevel
|
||||||
|
{
|
||||||
|
return _powerLevel;
|
||||||
|
}
|
||||||
|
|
||||||
void RFM69::rcCalibration()
|
void RFM69::rcCalibration()
|
||||||
{
|
{
|
||||||
writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
|
writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
|
||||||
|
|
@ -1120,4 +1125,4 @@ void RFM69::listenModeSendBurst( uint8_t targetNode, void* buffer, uint8_t size
|
||||||
setMode(RF69_MODE_STANDBY);
|
setMode(RF69_MODE_STANDBY);
|
||||||
reinitRadio();
|
reinitRadio();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue