[X9D] PXX working, thanks Robert!

This commit is contained in:
bernet.andre@gmail.com
2013-03-19 09:02:04 +00:00
parent 7f15566d5c
commit 403f14c0ea
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -188,7 +188,7 @@ void crc( uint8_t data )
{
// uint8_t i ;
PcmCrc=(PcmCrc>>8)^(CRCTable[(PcmCrc^data) & 0xFF]);
PcmCrc=(PcmCrc<<8)^(CRCTable[((PcmCrc>>8)^data) & 0xFF]);
}
#if defined(PCBSKY9X)
@@ -341,9 +341,10 @@ void setupPulsesPXX()
}
/* CRC16 */
putPcmByte(0);
chan = PcmCrc;
putPcmByte(chan>>8);
putPcmByte(chan);
putPcmByte(chan >> 8);
/* Sync */
putPcmHead();