Add readPowerLevel function

This commit is contained in:
ortegafernando 2020-06-02 08:14:53 +02:00 committed by GitHub
parent 7f4a88b233
commit 5dedaea406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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
} // COURSE_TEMP_COEF puts reading in the ballpark, user can add additional correction
uint8_t RFM69::readPowerLevel() // get powerLevel
{
return _powerLevel;
}
void RFM69::rcCalibration()
{
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);
reinitRadio();
}
#endif
#endif