summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2026-02-08 15:25:16 +0100
committerJordan Woyak <jordan.woyak@gmail.com>2026-02-15 20:14:15 -0600
commitdc4645d2556f6edc76021277fed7edcb5b6adfdc (patch)
tree984972f3cbc8f5e8c61b996bbcc266b90759c2cb
parentb2bbbb64bd3433c33c8b1e7b00c5713f0eb19c02 (diff)
SI_DeviceAMBaseboard: Shadowed variable "command"
-rw-r--r--Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp b/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp
index b2a65c10a3..7cc5d93c01 100644
--- a/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp
+++ b/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp
@@ -207,10 +207,10 @@ int CSIDevice_AMBaseboard::RunBuffer(u8* buffer, int request_length)
u32 buffer_position = 0;
while (buffer_position < buffer_length)
{
- BaseBoardCommand command = static_cast<BaseBoardCommand>(buffer[buffer_position]);
+ const auto bb_command = static_cast<BaseBoardCommand>(buffer[buffer_position]);
buffer_position++;
- switch (command)
+ switch (bb_command)
{
case BaseBoardCommand::GCAM_Reset: // Returns ID and dip switches
{
@@ -2523,7 +2523,7 @@ int CSIDevice_AMBaseboard::RunBuffer(u8* buffer, int request_length)
}
default:
{
- ERROR_LOG_FMT(SERIALINTERFACE, "Unknown SI command (0x{:08x})", (u32)command);
+ ERROR_LOG_FMT(SERIALINTERFACE, "Unknown SI command (0x{:08x})", (u32)bb_command);
PanicAlertFmt("SI: Unknown command");
buffer_position = buffer_length;
}