mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
RealtekFirmwareLoader: Fix shadowed variable warning
This commit is contained in:
parent
e0332f3749
commit
83cbedd609
@ -318,9 +318,9 @@ static bool LoadFirmware(LibUSBBluetoothAdapter& adapter, std::span<const char>
|
|||||||
|
|
||||||
HCICommandPayload<0xfc20, rtl_download_cmd> payload{};
|
HCICommandPayload<0xfc20, rtl_download_cmd> payload{};
|
||||||
|
|
||||||
const auto write_block = [&](std::span<const u8> data) {
|
const auto write_block = [&](std::span<const u8> block) {
|
||||||
rtl_download_response result{};
|
rtl_download_response result{};
|
||||||
if (!adapter.SendBlockingCommand(data, Common::AsWritableU8Span(result)))
|
if (!adapter.SendBlockingCommand(block, Common::AsWritableU8Span(result)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (result.status != 0x00)
|
if (result.status != 0x00)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user