mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 12:07:52 +00:00
Fixes
This commit is contained in:
parent
4dba4bcb36
commit
589b33d53f
@ -99,7 +99,7 @@ static void __attribute__((unused)) SFHSS_tune_chan_fast()
|
|||||||
{
|
{
|
||||||
CC2500_Strobe(CC2500_SIDLE);
|
CC2500_Strobe(CC2500_SIDLE);
|
||||||
CC2500_WriteReg(CC2500_0A_CHANNR, rf_ch_num*6+16);
|
CC2500_WriteReg(CC2500_0A_CHANNR, rf_ch_num*6+16);
|
||||||
CC2500_WriteRegisterMulti(CC2500_23_FSCAL3, calData[rf_ch_num], 3);
|
CC2500_WriteReg(CC2500_25_FSCAL1, calData[rf_ch_num]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ uint16_t ReadSFHSS()
|
|||||||
state = SFHSS_CAL;
|
state = SFHSS_CAL;
|
||||||
return 2000;
|
return 2000;
|
||||||
case SFHSS_CAL:
|
case SFHSS_CAL:
|
||||||
CC2500_ReadRegisterMulti(CC2500_23_FSCAL3, calData[rf_ch_num], 3);
|
calData[rf_ch_num]=CC2500_ReadReg(CC2500_25_FSCAL1);
|
||||||
if (++rf_ch_num < 30)
|
if (++rf_ch_num < 30)
|
||||||
SFHSS_tune_chan();
|
SFHSS_tune_chan();
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user