px4io: enable power on Spektrum connector on init

This commit is contained in:
Andrew Tridgell 2013-09-18 10:30:09 +10:00 committed by Lorenz Meier
parent d6088efd34
commit 94b539dfdd
1 changed files with 6 additions and 0 deletions

View File

@ -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);