Fix cppcheck HIGH error (#5250)

https://github.com/meshtastic/firmware/pull/5247 introduced new
protobufs, particularly the excluded_modules feature.

Immediately afterward, cppcheck started sounding klaxons about
an unitialized variable. This patch simply sets excluded_modules
to none as a temporary measure while the feature from protobuf
is integrated into code.
This commit is contained in:
Tom Fifield 2024-11-04 21:03:50 +08:00 committed by GitHub
parent 276067065e
commit e71be778dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1160,6 +1160,7 @@ extern meshtastic_DeviceMetadata getDeviceMetadata()
deviceMetadata.position_flags = config.position.position_flags;
deviceMetadata.hw_model = HW_VENDOR;
deviceMetadata.hasRemoteHardware = moduleConfig.remote_hardware.enabled;
deviceMetadata.excluded_modules = meshtastic_ExcludedModules_EXCLUDED_NONE;
#if !(MESHTASTIC_EXCLUDE_PKI)
deviceMetadata.hasPKC = true;
#endif
@ -1195,4 +1196,4 @@ void loop()
mainDelay.delay(delayMsec);
}
}
#endif
#endif