diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-09-18 10:30:09 +1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-07 09:36:33 +0100 |
commit | 94b539dfddc5a2e293f51058ee5bf0d6ffc78406 (patch) | |
tree | 6e34a83127cd2adf03d8b8814cda0c1e218c35e8 /src/modules | |
parent | d6088efd34e5482d302e3a253fdd3a170d88490a (diff) | |
download | px4-firmware-94b539dfddc5a2e293f51058ee5bf0d6ffc78406.tar.gz px4-firmware-94b539dfddc5a2e293f51058ee5bf0d6ffc78406.tar.bz2 px4-firmware-94b539dfddc5a2e293f51058ee5bf0d6ffc78406.zip |
px4io: enable power on Spektrum connector on init
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/px4iofirmware/dsm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/dsm.c b/src/modules/px4iofirmware/dsm.c index 4d306d6d0..60eda2319 100644 --- a/src/modules/px4iofirmware/dsm.c +++ b/src/modules/px4iofirmware/dsm.c @@ -203,6 +203,12 @@ dsm_guess_format(bool reset) int dsm_init(const char *device) { + +#ifdef CONFIG_ARCH_BOARD_PX4IO_V2 + // enable power on DSM connector + POWER_SPEKTRUM(true); +#endif + if (dsm_fd < 0) dsm_fd = open(device, O_RDONLY | O_NONBLOCK); |