mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Changes to UAVObjectManager to explicitly specify the logfs instance to be used
This commit is contained in:
parent
c6485a134c
commit
aefda3b560
@ -34,6 +34,8 @@
|
|||||||
#include "openpilot.h"
|
#include "openpilot.h"
|
||||||
#include "pios_struct_helper.h"
|
#include "pios_struct_helper.h"
|
||||||
|
|
||||||
|
extern uintptr_t pios_uavo_settings_fs_id;
|
||||||
|
|
||||||
#if (defined(__MACH__) && defined(__APPLE__))
|
#if (defined(__MACH__) && defined(__APPLE__))
|
||||||
#include <mach-o/getsect.h>
|
#include <mach-o/getsect.h>
|
||||||
#endif
|
#endif
|
||||||
@ -964,7 +966,7 @@ int32_t UAVObjLoad(UAVObjHandle obj_handle, __attribute__((unused)) uint16_t ins
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
// Fire event on success
|
// Fire event on success
|
||||||
if (PIOS_FLASHFS_ObjLoad(0, UAVObjGetID(obj_handle), instId, InstanceData(instEntry), UAVObjGetNumBytes(obj_handle)) == 0)
|
if (PIOS_FLASHFS_ObjLoad(pios_uavo_settings_fs_id, UAVObjGetID(obj_handle), instId, InstanceData(instEntry), UAVObjGetNumBytes(obj_handle)) == 0)
|
||||||
sendEvent((struct UAVOBase*)obj_handle, instId, EV_UNPACKED);
|
sendEvent((struct UAVOBase*)obj_handle, instId, EV_UNPACKED);
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user