Merge branch 'master' into mqtt

This commit is contained in:
Jonathan Naylor
2025-03-14 13:39:49 +00:00
102 changed files with 1621 additions and 1489 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016,2018,2023 by Jonathan Naylor G4KLX
* Copyright (C) 2016,2018,2023,2025 by Jonathan Naylor G4KLX
* Copyright (C) 2018 by Bryan Biedenkapp <gatekeep@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -31,13 +31,13 @@ const unsigned int MAX_NID_ERRS = 5U;
CP25NID::CP25NID(unsigned int nac) :
m_duid(0U),
m_hdr(NULL),
m_ldu1(NULL),
m_ldu2(NULL),
m_termlc(NULL),
m_term(NULL),
m_tsdu(NULL),
m_pdu(NULL)
m_hdr(nullptr),
m_ldu1(nullptr),
m_ldu2(nullptr),
m_termlc(nullptr),
m_term(nullptr),
m_tsdu(nullptr),
m_pdu(nullptr)
{
CBCH bch;
@@ -104,7 +104,7 @@ CP25NID::~CP25NID()
bool CP25NID::decode(const unsigned char* data)
{
assert(data != NULL);
assert(data != nullptr);
unsigned char nid[P25_NID_LENGTH_BYTES];
CP25Utils::decode(data, nid, 48U, 114U);
@@ -156,7 +156,7 @@ bool CP25NID::decode(const unsigned char* data)
void CP25NID::encode(unsigned char* data, unsigned char duid) const
{
assert(data != NULL);
assert(data != nullptr);
switch (duid) {
case P25_DUID_HEADER: