From 49c65cf5ddca7f8d36ea5b9fc8cad059d7da59c6 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Sun, 14 Mar 2021 00:40:36 -0800 Subject: [PATCH] AnalogController: Only panic on unknown config mode commands --- src/core/analog_controller.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/analog_controller.cpp b/src/core/analog_controller.cpp index 1dc86ae76..ce14e4d7c 100644 --- a/src/core/analog_controller.cpp +++ b/src/core/analog_controller.cpp @@ -401,10 +401,15 @@ bool AnalogController::Transfer(const u8 data_in, u8* data_out) m_rumble_config_large_motor_index = -1; m_rumble_config_small_motor_index = -1; } + else if (m_configuration_mode) + { + Log_ErrorPrintf("Unimplemented config mode command 0x%02X", data_in); + Panic("Unimplemented config mode command"); + } else { - Log_ErrorPrintf("Unimplemented analog controller command 0x%02X", data_in); - Panic("Unimplemented analog controller command"); + *data_out = 0xFF; + return false; } } break;