mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
[mission] force struct to be initialized at 0
This commit is contained in:
committed by
Freek van Tienen
parent
d89f489631
commit
428fa38612
@@ -32,7 +32,7 @@
|
|||||||
#include "subsystems/datalink/datalink.h"
|
#include "subsystems/datalink/datalink.h"
|
||||||
#include "subsystems/datalink/downlink.h"
|
#include "subsystems/datalink/downlink.h"
|
||||||
|
|
||||||
struct _mission mission;
|
struct _mission mission = { 0 };
|
||||||
|
|
||||||
void mission_init(void)
|
void mission_init(void)
|
||||||
{
|
{
|
||||||
@@ -43,6 +43,7 @@ void mission_init(void)
|
|||||||
// FIXME
|
// FIXME
|
||||||
// we have no guarantee that nav modules init are called after mission_init
|
// we have no guarantee that nav modules init are called after mission_init
|
||||||
// this would erase the already registered elements
|
// this would erase the already registered elements
|
||||||
|
// for now, rely on the static initialization
|
||||||
//for (int i = 0; i < MISSION_REGISTER_NB; i++) {
|
//for (int i = 0; i < MISSION_REGISTER_NB; i++) {
|
||||||
// mission.registered[i].cb = NULL;
|
// mission.registered[i].cb = NULL;
|
||||||
// memset(mission.registered[i].type, '\0', MISSION_TYPE_SIZE);
|
// memset(mission.registered[i].type, '\0', MISSION_TYPE_SIZE);
|
||||||
|
|||||||
Reference in New Issue
Block a user