Only update the LSF data once per superframe

pull/10/head
Clayton Smith 2023-09-13 08:04:08 -04:00
rodzic cf1e16a294
commit a88f0f2e19
1 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -267,12 +267,15 @@ int main(void)
while(!finished)
{
lsf = next_lsf;
if(lich_cnt == 0)
{
lsf = next_lsf;
//calculate LSF CRC
uint16_t ccrc=LSF_CRC(&lsf);
lsf.crc[0]=ccrc>>8;
lsf.crc[1]=ccrc&0xFF;
//calculate LSF CRC
uint16_t ccrc=LSF_CRC(&lsf);
lsf.crc[0]=ccrc>>8;
lsf.crc[1]=ccrc&0xFF;
}
memcpy(data, next_data, sizeof(data));