SI_DeviceAMBaseboard: Use CreateStatusResponse to fix "RunSIBuffer: expected_response_length" WARN_LOGs.
This commit is contained in:
1 parent
8da0a94ab9
commit
1234a4e479
1 file changed
+1
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user