Fix EVENT_MODE on mqttless targets (#6750)

This commit is contained in:
Austin
2025-05-06 13:12:25 -04:00
committed by GitHub
parent 867f50ab11
commit 62421a83fd

View File

@@ -345,7 +345,7 @@ void Channels::setChannel(const meshtastic_Channel &c)
bool Channels::anyMqttEnabled()
{
#if USERPREFS_EVENT_MODE
#if USERPREFS_EVENT_MODE && !MESHTASTIC_EXCLUDE_MQTT
// Don't publish messages on the public MQTT broker if we are in event mode
if (mqtt && mqtt->isUsingDefaultServer()) {
return false;