Skip to content

Commit 18442e9

Browse files
committed
hardware.device: fix firmware upload.
Introduced in commit 132dbf1. Fixes #982.
1 parent 8a61053 commit 18442e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

software/glasgow/hardware/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def on_connected(device):
135135
for offset in range(0, len(data), 4096):
136136
await device.control_transfer_out(
137137
usb.RequestType.Vendor, usb.Recipient.Device,
138-
REQ_RAM, address, 0, bytes(data[offset:offset + 4096]))
138+
REQ_RAM, address + offset, 0, bytes(data[offset:offset + 4096]))
139139
await device.control_transfer_out(
140140
usb.RequestType.Vendor, usb.Recipient.Device, REQ_RAM, REG_CPUCS, 0, bytes([0]))
141141
await device.close()

0 commit comments

Comments
 (0)