diff --git a/flight/uavobjects/inc/uavobjectmanager.h b/flight/uavobjects/inc/uavobjectmanager.h index 349d7c3dd..9da465cba 100644 --- a/flight/uavobjects/inc/uavobjectmanager.h +++ b/flight/uavobjects/inc/uavobjectmanager.h @@ -49,6 +49,8 @@ typedef void *UAVObjHandle; +#define MetaObjectId(id) ((id) + 1) + /** * Object update mode, used by multiple modules (e.g. telemetry and logger) */ diff --git a/flight/uavobjects/uavobjectmanager.c b/flight/uavobjects/uavobjectmanager.c index d350a9d53..2a02b3ee1 100644 --- a/flight/uavobjects/uavobjectmanager.c +++ b/flight/uavobjects/uavobjectmanager.c @@ -167,7 +167,6 @@ struct UAVOMulti { #define MetaObjectPtr(obj) ((struct UAVODataMeta *)&((obj)->metaObj)) #define MetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->instance0)) #define LinkedMetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->metaObj.instance0)) -#define MetaObjectId(id) ((id) + 1) /** all information about instances are dependant on object type **/ #define ObjSingleInstanceDataOffset(obj) ((void *)(&(((struct UAVOSingle *)obj)->instance0)))