1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Ground: Cosmetic change

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1709 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-09-21 19:29:45 +00:00 committed by peabody124
parent af6b6d91a3
commit b6bffaeb27
2 changed files with 4 additions and 1 deletions

View File

@ -79,6 +79,7 @@ void UAVObject::initializeFields(QList<UAVObjectField*>& fields, quint8* data, q
*/
void UAVObject::fieldUpdated(UAVObjectField* field)
{
Q_UNUSED(field);
// emit objectUpdatedAuto(this); // trigger object updated event
// emit objectUpdated(this);
}
@ -206,7 +207,7 @@ UAVObjectField* UAVObject::getField(const QString& name)
}
}
// If this point is reached then the field was not found
Q_ASSERT_X(0,"UAVObject::getField",QString("Non existant field " + name + "requested. This indicates a bug. Make sure you also have null checking for non-debug code.").toAscii());
Q_ASSERT_X(0,"UAVObject::getField",QString("Non existant field " + name + " requested. This indicates a bug. Make sure you also have null checking for non-debug code.").toAscii());
return NULL;
}

View File

@ -311,6 +311,8 @@ bool UAVTalk::processInputByte(quint8 rxbyte)
*/
bool UAVTalk::receiveObject(quint8 type, quint32 objId, quint16 instId, quint8* data, qint32 length)
{
Q_UNUSED(length);
UAVObject* obj = NULL;
bool error = false;
bool allInstances = (instId == ALL_INSTANCES? true : false);