Fix crash.

This commit is contained in:
Jonathan Naylor 2020-11-07 16:27:22 +00:00
parent e7503907df
commit 3fd09f49f9
2 changed files with 2 additions and 2 deletions

View file

@ -546,7 +546,7 @@ int CDGIdGateway::run()
nPips = 0U;
}
if (dgIdNetwork[currentDGId] != NULL) {
if (currentDGId != UNSET_DGID && dgIdNetwork[currentDGId] != NULL) {
DGID_STATUS netState = dgIdNetwork[currentDGId]->getStatus();
bool statc = dgIdNetwork[currentDGId]->m_static;
if (fromRF && state != DS_LINKED && netState != DS_LINKED && statc)

View file

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20201101";
const char* VERSION = "20201107";
#endif