fixed: emulated gyro data not enabled

This commit is contained in:
True Zhuanjia
2026-08-17 17:13:27 +08:00
parent cdd613cc63
commit 514dbb98e7
+1
View File
@@ -1916,6 +1916,7 @@ double rc_expo(double x, double expo) {
// Stop all timers to ensure a clean slate before applying the new setting. // Stop all timers to ensure a clean slate before applying the new setting.
[self stopTimerForAllControllers]; [self stopTimerForAllControllers];
_gyroEnabledFlag = _gyroMode != GyroModeOff && tempSettings.emulatedControllerType.intValue == LI_CTYPE_PS;
switch(_gyroMode) { switch(_gyroMode) {
case AlwaysController: case AlwaysController:
// Activate timers only for physical controllers. // Activate timers only for physical controllers.