mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 02:02:23 +00:00
Make use of pre-existing channel_settings.module_settings.is_client_muted setting
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user