From 015e8e921254210b66f1e83ed22f6a4c08759a19 Mon Sep 17 00:00:00 2001 From: gm-matthew <108370479+gm-matthew@users.noreply.github.com> Date: Mon, 26 Jun 2023 10:56:04 +0100 Subject: [PATCH] Drive board uses the value 0xFF (not 0x00) on ports 42 and 45 to stop all effects when port 46 is set to 0xFF; fixes FFB effects continuing after game ends --- Src/Model3/DriveBoard/JoystickBoard.cpp | 2 +- Src/Model3/DriveBoard/WheelBoard.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Model3/DriveBoard/JoystickBoard.cpp b/Src/Model3/DriveBoard/JoystickBoard.cpp index 570ab42..0d7bf16 100644 --- a/Src/Model3/DriveBoard/JoystickBoard.cpp +++ b/Src/Model3/DriveBoard/JoystickBoard.cpp @@ -497,7 +497,7 @@ void CJoyBoard::ProcessEncoderCmdJoystick(void) case 0xFF: // Stop all effects - if (m_port42Out == 0 || m_port45Out == 0) + if (m_port42Out == 0xFF && m_port45Out == 0xFF) SendStopAll(); break; diff --git a/Src/Model3/DriveBoard/WheelBoard.cpp b/Src/Model3/DriveBoard/WheelBoard.cpp index 2e17b4a..10d85c1 100644 --- a/Src/Model3/DriveBoard/WheelBoard.cpp +++ b/Src/Model3/DriveBoard/WheelBoard.cpp @@ -591,7 +591,7 @@ void CWheelBoard::ProcessEncoderCmd(void) case 0xFF: // Stop all effects - if (m_port42Out == 0) + if (m_port42Out == 0xFF) SendStopAll(); break;