getFrequency Method

This commit is contained in:
Crsarmv7l 2024-03-26 19:26:07 -04:00 committed by GitHub
parent 7d0b3c6640
commit 40af21cab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -422,6 +422,11 @@ int16_t CC1101::readData(uint8_t* data, size_t len) {
return(state);
}
float CC1101::getFrequency() {
// Get currently set Frequency
return (this->frequency);
}
int16_t CC1101::setFrequency(float freq) {
// check allowed frequency range
if(!(((freq > 300.0) && (freq < 348.0)) ||