Skip to content

Commit

Permalink
Use downloaded hex (#413)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
microbit-grace authored Oct 23, 2024
1 parent e834ca9 commit 9be3328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/download-hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export class DownloadProjectActions {
this.state.usbDevice &&
this.state.usbDevice.status === UsbConnectionStatus.CONNECTED
) {
const newState = {
const newState: DownloadState = {
...this.state,
step: DownloadStep.FlashingInProgress,
project: download,
hex: download,
};
this.setState(newState);
await this.flashMicrobit(newState, {
Expand Down

0 comments on commit 9be3328

Please sign in to comment.