mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-22 20:44:49 +00:00
htc: fix copy/paste error in usb driver
This commit is contained in:
parent
09b408fe4d
commit
48c5a49ad7
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace ams::htclow::driver {
|
|||
/* Send until we've sent everything. */
|
||||
for (auto transferred = 0; transferred < dst_size; /* ... */) {
|
||||
int cur;
|
||||
R_TRY(SendUsb(std::addressof(cur), reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(dst) + transferred), dst_size - transferred));
|
||||
R_TRY(ReceiveUsb(std::addressof(cur), reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(dst) + transferred), dst_size - transferred));
|
||||
|
||||
transferred += cur;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue