mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
px4io: enable power on Spektrum connector on init
This commit is contained in:
committed by
Lorenz Meier
parent
d6088efd34
commit
94b539dfdd
@@ -203,6 +203,12 @@ dsm_guess_format(bool reset)
|
|||||||
int
|
int
|
||||||
dsm_init(const char *device)
|
dsm_init(const char *device)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_BOARD_PX4IO_V2
|
||||||
|
// enable power on DSM connector
|
||||||
|
POWER_SPEKTRUM(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (dsm_fd < 0)
|
if (dsm_fd < 0)
|
||||||
dsm_fd = open(device, O_RDONLY | O_NONBLOCK);
|
dsm_fd = open(device, O_RDONLY | O_NONBLOCK);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user