Cpp-check warnings cleanup (#3014)

* cpp-check warnings cleanup

* Supressions and more fixes
This commit is contained in:
Ben Meadors
2023-12-14 07:35:46 -06:00
committed by GitHub
parent 9f85279e74
commit 4720b2874f
9 changed files with 16 additions and 15 deletions

View File

@@ -184,7 +184,7 @@ void Channels::onConfigChanged()
{
// Make sure the phone hasn't mucked anything up
for (int i = 0; i < channelFile.channels_count; i++) {
meshtastic_Channel &ch = fixupChannel(i);
const meshtastic_Channel &ch = fixupChannel(i);
if (ch.role == meshtastic_Channel_Role_PRIMARY)
primaryIndex = i;