From 1a5741f984d5ed976ffece72e151d8ae4ec9d200 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 3 May 2021 13:06:47 -0700 Subject: [PATCH] cubepilot_cubeorange: Initalize PWM as input with Pull Downs --- boards/cubepilot/cubeorange/src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/cubepilot/cubeorange/src/init.c b/boards/cubepilot/cubeorange/src/init.c index af6b2189f8..277c08d4f1 100644 --- a/boards/cubepilot/cubeorange/src/init.c +++ b/boards/cubepilot/cubeorange/src/init.c @@ -97,7 +97,7 @@ __EXPORT void board_peripheral_reset(int ms) __EXPORT void board_on_reset(int status) { for (int i = 0; i < DIRECT_PWM_OUTPUT_CHANNELS; ++i) { - px4_arch_configgpio(PX4_MAKE_GPIO_INPUT(io_timer_channel_get_as_pwm_input(i))); + px4_arch_configgpio(PX4_MAKE_GPIO_INPUT_PULL_DOWN(io_timer_channel_get_as_pwm_input(i))); } if (status >= 0) {