diff options
author | Julian Oes <julian@oes.ch> | 2013-08-14 12:38:25 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-08-15 10:21:58 +0200 |
commit | e5af29be1706b1d20d6bafe8c481213c76cc0d34 (patch) | |
tree | 18900028c6be68a38377f9ca79ec298c17610a61 /src/modules/commander | |
parent | 27d0885453711a3d3ab6abf3cf227afc837e14bd (diff) | |
download | px4-firmware-e5af29be1706b1d20d6bafe8c481213c76cc0d34.tar.gz px4-firmware-e5af29be1706b1d20d6bafe8c481213c76cc0d34.tar.bz2 px4-firmware-e5af29be1706b1d20d6bafe8c481213c76cc0d34.zip |
Fixed param save and load
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/commander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 82b575405..5b3654bcd 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -407,10 +407,10 @@ void handle_command(struct vehicle_status_s *status, struct vehicle_control_mode low_prio_task_t new_low_prio_task = LOW_PRIO_TASK_NONE; if (((int)(cmd->param1)) == 0) { - low_prio_task = LOW_PRIO_TASK_PARAM_LOAD; + new_low_prio_task = LOW_PRIO_TASK_PARAM_LOAD; } else if (((int)(cmd->param1)) == 1) { - low_prio_task = LOW_PRIO_TASK_PARAM_SAVE; + new_low_prio_task = LOW_PRIO_TASK_PARAM_SAVE; } /* check if we have new task and no other task is scheduled */ |