fixed warning (#2297)

This commit is contained in:
Bernd Herzog 2024-10-14 17:03:24 +02:00 committed by GitHub
parent fcc52e83de
commit 023cee2c3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View file

@ -124,8 +124,9 @@ standalone_application_api_t api = {
};
StandaloneView::StandaloneView(NavigationView& nav, uint8_t* app_image)
: nav_(nav), _app_image(app_image) {
if (_app_image == nullptr) {
: nav_(nav),
_app_image(*app_image) {
if (app_image == nullptr) {
chDbgPanic("Invalid application image");
}