From b910b1261d1adf6de2f2db99061c57ef218fc042 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Tue, 30 Jan 2024 15:20:30 -0800 Subject: [PATCH] Init pins for Analog Joystick sensor (#22985) --- drivers/sensors/analog_joystick.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/sensors/analog_joystick.c b/drivers/sensors/analog_joystick.c index 4aede4eacdf..221625075c5 100644 --- a/drivers/sensors/analog_joystick.c +++ b/drivers/sensors/analog_joystick.c @@ -128,6 +128,9 @@ report_analog_joystick_t analog_joystick_read(void) { } void analog_joystick_init(void) { + setPinInputHigh(ANALOG_JOYSTICK_X_AXIS_PIN); + setPinInputHigh(ANALOG_JOYSTICK_Y_AXIS_PIN); + #ifdef ANALOG_JOYSTICK_CLICK_PIN setPinInputHigh(ANALOG_JOYSTICK_CLICK_PIN); #endif