Skip to content

Commit 9be3328

Browse files
Use downloaded hex (#413)
Most recent download hex data was not being passed through when usb was already connected. https://microbit-global.monday.com/boards/1550536443/pulses/1676135382 (Private)
1 parent e834ca9 commit 9be3328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/download-hooks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export class DownloadProjectActions {
5252
this.state.usbDevice &&
5353
this.state.usbDevice.status === UsbConnectionStatus.CONNECTED
5454
) {
55-
const newState = {
55+
const newState: DownloadState = {
5656
...this.state,
5757
step: DownloadStep.FlashingInProgress,
58-
project: download,
58+
hex: download,
5959
};
6060
this.setState(newState);
6161
await this.flashMicrobit(newState, {

0 commit comments

Comments
 (0)