Make use of pre-existing channel_settings.module_settings.is_client_muted setting

This commit is contained in:
ford-jones
2025-09-13 13:39:32 +12:00
parent e0890b2a13
commit ccff2769fe
6 changed files with 16 additions and 17 deletions

View File

@@ -347,7 +347,7 @@ void Channels::setMute(ChannelIndex chIndex)
{
if (chIndex < channelFile.channels_count) {
meshtastic_Channel *ch = channelFile.channels + chIndex;
ch->settings.mute = !ch->settings.mute;
ch->settings.module_settings.is_client_muted = !ch->settings.module_settings.is_client_muted;
} else {
LOG_ERROR("Failed to mute. Invalid channel index %d > %d", chIndex, channelFile.channels_count);
};