okay, because a certain OEM's system does, idiotic things, lets handle a START_OF_STREAM block along side FULLRATE_VOICE blocks;

pull/86/head
Bryan Biedenkapp 1 year ago
parent 1d9eefba56
commit d8e6b17fbb

@ -1135,15 +1135,19 @@ void ModemV24::convertToAirTIA(const uint8_t *data, uint32_t length)
StartOfStream start = StartOfStream(); StartOfStream start = StartOfStream();
start.decode(dfsiData + dataOffs); start.decode(dfsiData + dataOffs);
uint16_t nac = start.getNID() & 0xFFFU; if (blockCnt == 1U) {
uint16_t nac = start.getNID() & 0xFFFU;
// bryanb: maybe compare the NACs? // bryanb: maybe compare the NACs?
dataOffs += StartOfStream::LENGTH; dataOffs += StartOfStream::LENGTH;
// ack start of stream // ack start of stream
// bryanb: is this really the right place to be doing this... ackStartOfStreamTIA();
ackStartOfStreamTIA(); } else {
dataOffs += 1U; // this is really bizarre and shouldn't be needed but Motorola has
// forced my hand ... again
}
} }
break; break;
case BlockType::END_OF_STREAM: case BlockType::END_OF_STREAM:

Loading…
Cancel
Save

Powered by TurnKey Linux.