fix(horus): detection for Flysky Hall Gimbals not working (#6158)

This commit is contained in:
stefan73
2025-04-28 14:14:49 +10:00
committed by GitHub
parent 56ff3b2995
commit fcb13491f6
+7 -5
View File
@@ -195,12 +195,14 @@ void boardInit()
switchInit();
rotaryEncoderInit();
#if defined(PWM_STICKS)
sticksPwmDetect();
#endif
#if defined(FLYSKY_GIMBAL)
#if defined(FLYSKY_GIMBAL) && defined(PWM_STICKS)
if (!flysky_gimbal_init()) {
sticksPwmDetect();
}
#elif defined(FLYSKY_GIMBAL)
flysky_gimbal_init();
#elif defined(PWM_STICKS)
sticksPwmDetect();
#endif
if (!adcInit(&_adc_driver))