mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-1474 Fixed code asserting in debug.
This commit is contained in:
parent
602bfd3e4c
commit
508112d5a3
@ -73,7 +73,7 @@ GUIConfigDataUnion VehicleConfig::getConfigData()
|
||||
}
|
||||
|
||||
// sanity check
|
||||
// Q_ASSERT(SystemSettings::GUICONFIGDATA_NUMELEM == (sizeof(configData.UAVObject) / sizeof(configData.UAVObject[0])));
|
||||
Q_ASSERT(SystemSettings::GUICONFIGDATA_NUMELEM == (sizeof(configData.UAVObject) / sizeof(configData.UAVObject[0])));
|
||||
|
||||
return configData;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ typedef struct {
|
||||
|
||||
|
||||
typedef union {
|
||||
uint UAVObject[5]; // 32 bits * 5
|
||||
uint UAVObject[4]; // 32 bits * 4
|
||||
heliGUISettingsStruct heli; // 128 bits
|
||||
fixedGUISettingsStruct fixedwing;
|
||||
multiGUISettingsStruct multi;
|
||||
|
Loading…
Reference in New Issue
Block a user