dataman: rename SYSTEM_STATE section to MISSION_STATE

This commit is contained in:
Anton Babushkin
2014-06-12 13:11:45 +02:00
parent 3f1f015fe0
commit 2951962c21
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ Navigator::task_main()
/* Get the last offboard mission id */
persistent_system_state_t sys_state;
if (dm_read(DM_KEY_SYSTEM_STATE, 0, &sys_state, sizeof(sys_state)) == sizeof(sys_state)) {
if (dm_read(DM_KEY_MISSION_STATE, 0, &sys_state, sizeof(sys_state)) == sizeof(sys_state)) {
if ((sys_state.offboard_waypoint_id >= 0) && (sys_state.offboard_waypoint_id <= 1))
_mission.set_offboard_dataman_id(sys_state.offboard_waypoint_id);
}