This commit is contained in:
Georgi Gerganov
2022-05-28 19:41:56 +03:00
parent 6b7134d3e4
commit fcb3bec055
5 changed files with 18 additions and 14 deletions

View File

@@ -1294,6 +1294,10 @@ void GGWave::decode_fixed() {
const int binStart = rxProtocol.freqStart;
const int binDelta = 16;
if (binStart > kMaxSamplesPerFrame) {
continue;
}
const int totalLength = m_payloadLength + getECCBytesForLength(m_payloadLength);
const int totalTxs = (totalLength + rxProtocol.bytesPerTx - 1)/rxProtocol.bytesPerTx;