kopia lustrzana https://github.com/M17-Project/M17_Implementations
Only update the LSF data once per superframe
rodzic
cf1e16a294
commit
a88f0f2e19
|
@ -267,12 +267,15 @@ int main(void)
|
||||||
|
|
||||||
while(!finished)
|
while(!finished)
|
||||||
{
|
{
|
||||||
lsf = next_lsf;
|
if(lich_cnt == 0)
|
||||||
|
{
|
||||||
|
lsf = next_lsf;
|
||||||
|
|
||||||
//calculate LSF CRC
|
//calculate LSF CRC
|
||||||
uint16_t ccrc=LSF_CRC(&lsf);
|
uint16_t ccrc=LSF_CRC(&lsf);
|
||||||
lsf.crc[0]=ccrc>>8;
|
lsf.crc[0]=ccrc>>8;
|
||||||
lsf.crc[1]=ccrc&0xFF;
|
lsf.crc[1]=ccrc&0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy(data, next_data, sizeof(data));
|
memcpy(data, next_data, sizeof(data));
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue