aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/commander.cpp
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-04-05 16:59:01 +0400
committerAnton Babushkin <anton.babushkin@me.com>2014-04-05 16:59:01 +0400
commit97cde3311efab479c43226dea3b1edd93629c33b (patch)
tree8bdd79dc77d196b41e28ba2e04b63e279f3b12a6 /src/modules/commander/commander.cpp
parent8064b44dad5c10157571f05b0e6d3fa260aec657 (diff)
downloadpx4-firmware-97cde3311efab479c43226dea3b1edd93629c33b.tar.gz
px4-firmware-97cde3311efab479c43226dea3b1edd93629c33b.tar.bz2
px4-firmware-97cde3311efab479c43226dea3b1edd93629c33b.zip
commander: home publication fixed
Diffstat (limited to 'src/modules/commander/commander.cpp')
-rw-r--r--src/modules/commander/commander.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 47e630d07..17c085652 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -613,10 +613,10 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
/* announce new home position */
if (*home_pub > 0) {
- orb_publish(ORB_ID(home_position), *home_pub, &home);
+ orb_publish(ORB_ID(home_position), *home_pub, home);
} else {
- *home_pub = orb_advertise(ORB_ID(home_position), &home);
+ *home_pub = orb_advertise(ORB_ID(home_position), home);
}
/* mark home position as set */