SI_DeviceAMBaseboard: Use CreateStatusResponse to fix "RunSIBuffer: expected_response_length" WARN_LOGs.

This commit is contained in:
Jordan Woyak 2026-02-20 16:05:15 -06:00
parent 8da0a94ab9
commit 1234a4e479

View File

@ -228,9 +228,7 @@ int CSIDevice_AMBaseboard::RunBuffer(u8* buffer, int request_length)
{
case EBufferCommands::CMD_STATUS: // Returns ID and dip switches
{
const u32 id = Common::swap32(SI_AM_BASEBOARD | 0x100);
std::memcpy(buffer, &id, sizeof(id));
return sizeof(id);
return CreateStatusResponse(SI_AM_BASEBOARD | 0x100, buffer);
}
break;
case EBufferCommands::CMD_AM_BASEBOARD: