Fix power level bit length for ADF7021

This commit is contained in:
Andy CA6JAU 2017-12-31 18:22:29 -03:00
parent 840462fafe
commit 00b58cf795
3 changed files with 12 additions and 8 deletions

2
IO.cpp
View file

@ -269,7 +269,7 @@ bool CIO::hasRXOverflow()
uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_power)
{
// Configure power level
m_power = rf_power;
setPower(rf_power);
// Check frequency ranges
if( !( ((frequency_rx >= VHF1_MIN)&&(frequency_rx < VHF1_MAX)) || ((frequency_tx >= VHF1_MIN)&&(frequency_tx < VHF1_MAX)) || \