mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
AHRS_COM: Initialize transpherred objects before using them
This commit is contained in:
parent
5e4941f7cb
commit
2062ec0aeb
@ -79,6 +79,7 @@ CREATEHANDLE(10, FirmwareIAPObj);
|
|||||||
static void ObjectUpdatedCb(UAVObjEvent * ev);
|
static void ObjectUpdatedCb(UAVObjEvent * ev);
|
||||||
|
|
||||||
#define ADDHANDLE(idx,obj) {\
|
#define ADDHANDLE(idx,obj) {\
|
||||||
|
obj##Initialize();\
|
||||||
int n = idx;\
|
int n = idx;\
|
||||||
objectHandles[n].data = &obj;\
|
objectHandles[n].data = &obj;\
|
||||||
objectHandles[n].uavHandle = obj##Handle();\
|
objectHandles[n].uavHandle = obj##Handle();\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user