diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-06-12 13:11:45 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-06-12 13:11:45 +0200 |
commit | 2951962c2104a0b2a284a7c5208171b257ed9734 (patch) | |
tree | 06b0a4ade5fe55fedd37dcea0c5d390380a0627a /src/modules/dataman/dataman.c | |
parent | 3f1f015fe0998618318c196dc15e245bd4c05675 (diff) | |
download | px4-firmware-2951962c2104a0b2a284a7c5208171b257ed9734.tar.gz px4-firmware-2951962c2104a0b2a284a7c5208171b257ed9734.tar.bz2 px4-firmware-2951962c2104a0b2a284a7c5208171b257ed9734.zip |
dataman: rename SYSTEM_STATE section to MISSION_STATE
Diffstat (limited to 'src/modules/dataman/dataman.c')
-rw-r--r-- | src/modules/dataman/dataman.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/dataman/dataman.c b/src/modules/dataman/dataman.c index 14fee7c9a..4a89c7d41 100644 --- a/src/modules/dataman/dataman.c +++ b/src/modules/dataman/dataman.c @@ -116,7 +116,7 @@ static const unsigned g_per_item_max_index[DM_KEY_NUM_KEYS] = { DM_KEY_WAYPOINTS_OFFBOARD_0_MAX, DM_KEY_WAYPOINTS_OFFBOARD_1_MAX, DM_KEY_WAYPOINTS_ONBOARD_MAX, - DM_KEY_SYSTEM_STATE_MAX + DM_KEY_MISSION_STATE_MAX }; /* Table of offset for index 0 of each item type */ @@ -642,11 +642,11 @@ task_main(int argc, char *argv[]) for (unsigned i = 0; i < dm_number_of_funcs; i++) g_func_counts[i] = 0; - /* Initialize the item type locks, for now only DM_KEY_SYSTEM_STATE supports locking */ + /* Initialize the item type locks, for now only DM_KEY_MISSION_STATE supports locking */ sem_init(&g_sys_state_mutex, 1, 1); /* Initially unlocked */ for (unsigned i = 0; i < DM_KEY_NUM_KEYS; i++) g_item_locks[i] = NULL; - g_item_locks[DM_KEY_SYSTEM_STATE] = &g_sys_state_mutex; + g_item_locks[DM_KEY_MISSION_STATE] = &g_sys_state_mutex; g_task_should_exit = false; |