1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1474 Fixed code asserting in debug.

This commit is contained in:
m_thread 2014-09-21 22:38:49 +02:00
parent 602bfd3e4c
commit 508112d5a3
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ GUIConfigDataUnion VehicleConfig::getConfigData()
} }
// sanity check // 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; return configData;
} }

View File

@ -131,7 +131,7 @@ typedef struct {
typedef union { typedef union {
uint UAVObject[5]; // 32 bits * 5 uint UAVObject[4]; // 32 bits * 4
heliGUISettingsStruct heli; // 128 bits heliGUISettingsStruct heli; // 128 bits
fixedGUISettingsStruct fixedwing; fixedGUISettingsStruct fixedwing;
multiGUISettingsStruct multi; multiGUISettingsStruct multi;