From 6eb0496d77c79091c1517fd6c1ee8a847b514606 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 11 May 2021 14:59:36 +1000 Subject: [PATCH] AnalogController: Don't panic on unknown configuration mode command --- src/core/analog_controller.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/analog_controller.cpp b/src/core/analog_controller.cpp index 74c32b959..966f25b8b 100644 --- a/src/core/analog_controller.cpp +++ b/src/core/analog_controller.cpp @@ -422,13 +422,11 @@ 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 { + if (m_configuration_mode) + Log_ErrorPrintf("Unimplemented config mode command 0x%02X", data_in); + *data_out = 0xFF; return false; }