diff --git a/Source/Core/Core/IOS/USB/Bluetooth/RealtekFirmwareLoader.cpp b/Source/Core/Core/IOS/USB/Bluetooth/RealtekFirmwareLoader.cpp index f68dd1c2a9..67a2fcac1f 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/RealtekFirmwareLoader.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/RealtekFirmwareLoader.cpp @@ -318,9 +318,9 @@ static bool LoadFirmware(LibUSBBluetoothAdapter& adapter, std::span HCICommandPayload<0xfc20, rtl_download_cmd> payload{}; - const auto write_block = [&](std::span data) { + const auto write_block = [&](std::span block) { rtl_download_response result{}; - if (!adapter.SendBlockingCommand(data, Common::AsWritableU8Span(result))) + if (!adapter.SendBlockingCommand(block, Common::AsWritableU8Span(result))) return false; if (result.status != 0x00)