Skip to content

Commit 81ba244

Browse files
update path into the zip stream
1 parent 735c0a4 commit 81ba244

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/src/services/FirmwareService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ export class FirmwareService {
213213

214214
const firmwareData = await this.unzipStreamToVariable(result.body!);
215215

216-
const firmwareDataMP = firmwareData['micropython.bin'];
216+
// The firmware file is a zipped file containing the necessary 'micropython.bin' file
217+
const firmwareDataMP = firmwareData[`${selectedFirmware.name}/micropython.bin`];
217218

218219
this.firmwareString = Array.from(firmwareDataMP)
219220
.map(byte => String.fromCharCode(byte))

0 commit comments

Comments
 (0)