1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

Meshtastic: fixed Tx and strengthen Rx header processing

This commit is contained in:
f4exb
2026-03-21 17:51:26 +01:00
parent a0d779fb65
commit a3f5ed6963
13 changed files with 444 additions and 221 deletions
@@ -117,5 +117,17 @@ void MeshtasticModEncoder::encodeBytesLoRa(const QByteArray& bytes, std::vector<
MeshtasticModEncoderLoRa::addChecksum(payload);
}
MeshtasticModEncoderLoRa::encodeBytes(payload, symbols, m_nbSymbolBits, m_hasHeader, m_hasCRC, m_nbParityBits);
const unsigned int headerNbSymbolBits = (m_hasHeader && (m_spreadFactor > 2U))
? (m_spreadFactor - 2U)
: m_nbSymbolBits;
MeshtasticModEncoderLoRa::encodeBytes(
payload,
symbols,
m_nbSymbolBits,
headerNbSymbolBits,
m_hasHeader,
m_hasCRC,
m_nbParityBits
);
}