From 4da1ec114649bb59273cef76b9fb8e62939422d8 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 3 May 2021 13:06:47 -0700 Subject: [PATCH] cubepilot_cubeyellow: Initalize PWM as input with Pull Downs --- boards/cubepilot/cubeyellow/src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/cubepilot/cubeyellow/src/init.c b/boards/cubepilot/cubeyellow/src/init.c index 3700662a17..5f593f1132 100644 --- a/boards/cubepilot/cubeyellow/src/init.c +++ b/boards/cubepilot/cubeyellow/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) {