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(); switchInit();
rotaryEncoderInit(); rotaryEncoderInit();
#if defined(PWM_STICKS) #if defined(FLYSKY_GIMBAL) && defined(PWM_STICKS)
sticksPwmDetect(); if (!flysky_gimbal_init()) {
#endif sticksPwmDetect();
}
#if defined(FLYSKY_GIMBAL) #elif defined(FLYSKY_GIMBAL)
flysky_gimbal_init(); flysky_gimbal_init();
#elif defined(PWM_STICKS)
sticksPwmDetect();
#endif #endif
if (!adcInit(&_adc_driver)) if (!adcInit(&_adc_driver))