From 9be33280865fa6a18c730711b750d420d9045edc Mon Sep 17 00:00:00 2001 From: Grace <145345672+microbit-grace@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:17:26 +0100 Subject: [PATCH] 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) --- src/hooks/download-hooks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/download-hooks.tsx b/src/hooks/download-hooks.tsx index 9b65de36e..0da208861 100644 --- a/src/hooks/download-hooks.tsx +++ b/src/hooks/download-hooks.tsx @@ -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, {