Calibrate cc2500 PLL if sub-protocol is E010/Phoenix only

This commit is contained in:
Goebish 2019-05-27 22:12:55 +02:00
parent 6257e25f56
commit 94a1aa8559

View File

@ -428,6 +428,9 @@ static void __attribute__((unused)) MJXQ_init2()
hopping_frequency[i]=pgm_read_byte_near( &E010_map_rfchan[rx_tx_addr[3]&0x0F][i] );
hopping_frequency[i+2]=hopping_frequency[i]+0x10;
}
#ifdef CC2500_INSTALLED
calibrate_pll();
#endif
break;
case WLH08:
// do nothing
@ -475,9 +478,6 @@ uint16_t MJXQ_callback()
if (bind_counter == 0)
{
MJXQ_init2();
#ifdef CC2500_INSTALLED
calibrate_pll();
#endif
BIND_DONE;
}
else