Browse Source

Merge pull request #2901 from tomasjura/packet_chased_max_define

packet demod PACKETDEMOD_CHASE_MAX missing
chirpmodem-v8.0.0
Edouard Griffiths 3 months ago committed by GitHub
parent
commit
4027f93654
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      plugins/channelrx/demodpacket/packetdemodframer.h

11
plugins/channelrx/demodpacket/packetdemodframer.h

@ -50,14 +50,15 @@ @@ -50,14 +50,15 @@
// bit stuffing and flags is under 5000 symbols.
#define PACKETDEMOD_SYM_HIST 8192
// Largest Chase depth honoured, matching the GUI spin box. The work is 2^n - 1 rebuilt
// and re-CRC'd frames for every CRC failure on every detector, so 12 is already 4095;
// the value reaches here from presets and the REST API, neither of which bounds it,
// and 1u << n is undefined once n reaches 32.
#define PACKETDEMOD_CHASE_MAX 12
class PacketDemodFramer
{
public:
// Largest Chase depth honoured, matching the GUI spin box. The work is 2^n - 1 rebuilt
// and re-CRC'd frames for every CRC failure on every detector, so 12 is already 4095;
// the value reaches here from presets and the REST API, neither of which bounds it,
// and 1u << n is undefined once n reaches 32.
static const int PACKETDEMOD_CHASE_MAX = 12;
// Returns true if the frame was accepted - the caller's deduplication decides, and the
// framer reports that back so callers can count distinct packets rather than the

Loading…
Cancel
Save