mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
do not do configuration check on SimPosix architecture, its not ported yet
This commit is contained in:
parent
d1447ca3f8
commit
112a3fe7e5
@ -174,8 +174,11 @@ static void systemTask(void *parameters)
|
||||
// Listen for SettingPersistance object updates, connect a callback function
|
||||
ObjectPersistenceConnectQueue(objectPersistenceQueue);
|
||||
|
||||
#if defined(ARCH_POSIX) || defined(ARCH_WIN32)
|
||||
#else
|
||||
// Run this initially to make sure the configuration is checked
|
||||
configuration_check();
|
||||
#endif
|
||||
|
||||
// Whenever the configuration changes, make sure it is safe to fly
|
||||
SystemSettingsConnectCallback(configurationUpdatedCb);
|
||||
@ -325,7 +328,12 @@ static void objectUpdatedCb(UAVObjEvent * ev)
|
||||
*/
|
||||
static void configurationUpdatedCb(UAVObjEvent * ev)
|
||||
{
|
||||
#if defined(ARCH_POSIX) || defined(ARCH_WIN32)
|
||||
// configuration_check requires board_info blobs and other structures
|
||||
// that are not present on all architectures
|
||||
#else
|
||||
configuration_check();
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user