mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 03:14:06 +08:00
logger: fix hardfault for invalid SDLOG_PROFILE setting
If some bits are set but no topic was added, _subscriptions was null but later accessed. During normal use this only happens when switching between different firmware versions with different SDLOG_PROFILE definition (with custom config).
This commit is contained in:
parent
1ea416f6de
commit
d22bbde7c5
@ -373,7 +373,7 @@ bool LoggedTopics::initialize_logged_topics(SDLogProfileMask profile)
|
||||
initialize_configured_topics(profile);
|
||||
}
|
||||
|
||||
return true;
|
||||
return _subscriptions.count > 0;
|
||||
}
|
||||
|
||||
void LoggedTopics::initialize_configured_topics(SDLogProfileMask profile)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user