mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-21 06:13:47 +00:00
Merge pull request #146 from BeigeBox/fix/aprswriter-null-mqtt
Add null check for m_mqtt in APRSWriter
This commit is contained in:
commit
fd75be7b21
1 changed files with 2 additions and 1 deletions
|
|
@ -156,6 +156,7 @@ void CAPRSWriter::sendIdFrame()
|
|||
if (m_debug)
|
||||
LogDebug("APRS ==> %s", output);
|
||||
|
||||
m_mqtt->publish("aprs-gateway/aprs", output);
|
||||
if (m_mqtt != nullptr)
|
||||
m_mqtt->publish("aprs-gateway/aprs", output);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue