aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-07-11 23:25:19 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-07-11 23:25:19 +0200
commitf6b45ac2e1309e193ca95afee19cad1c8e0c18b7 (patch)
tree7114de55b42535b1591fea2ddec40923c2f262c9 /src
parent28f536dc4478e5536b568093ec62cf16e8a1687d (diff)
parent3ac760978f3cd4be1ede595e1802d38d28ce1d96 (diff)
downloadpx4-firmware-f6b45ac2e1309e193ca95afee19cad1c8e0c18b7.tar.gz
px4-firmware-f6b45ac2e1309e193ca95afee19cad1c8e0c18b7.tar.bz2
px4-firmware-f6b45ac2e1309e193ca95afee19cad1c8e0c18b7.zip
Merge branch 'master' of github.com:PX4/Firmware
Diffstat (limited to 'src')
-rw-r--r--src/drivers/px4io/px4io.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index 08aef7069..ae56b70b3 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1696,8 +1696,6 @@ bind(int argc, char *argv[])
else
errx(1, "unknown parameter %s, use dsm2 or dsmx", argv[2]);
- g_dev->ioctl(nullptr, DSM_BIND_START, pulses);
-
/* Open console directly to grab CTRL-C signal */
int console = open("/dev/console", O_NONBLOCK | O_RDONLY | O_NOCTTY);
if (!console)
@@ -1706,6 +1704,8 @@ bind(int argc, char *argv[])
warnx("This command will only bind DSM if satellite VCC (red wire) is controlled by relay 1.");
warnx("Press CTRL-C or 'c' when done.");
+ g_dev->ioctl(nullptr, DSM_BIND_START, pulses);
+
for (;;) {
usleep(500000L);
/* Check if user wants to quit */