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

Loading…
Cancel
Save

Powered by TurnKey Linux.