getFrequency Method
This commit is contained in:
parent
7d0b3c6640
commit
40af21cab8
1 changed files with 5 additions and 0 deletions
|
@ -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)) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue