mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 06:17:35 +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
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user