Merge branch 'mqtt' into mqtt_plus

This commit is contained in:
Jonathan Naylor
2023-12-06 17:36:56 +00:00
4 changed files with 13 additions and 6 deletions

View File

@@ -564,7 +564,10 @@ void CM17Control::writeNetwork()
m_networkWatchdog.start();
if (!m_allowEncryption) {
unsigned char type = m_netLSF.getEncryptionType();
CM17LSF lsf;
lsf.setNetwork(netData);
unsigned char type = lsf.getEncryptionType();
if (type != M17_ENCRYPTION_TYPE_NONE) {
m_network->reset();
return;