We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ba244 commit fff7cadCopy full SHA for fff7cad
kernel/src/services/FirmwareService.ts
@@ -214,7 +214,10 @@ export class FirmwareService {
214
const firmwareData = await this.unzipStreamToVariable(result.body!);
215
216
// The firmware file is a zipped file containing the necessary 'micropython.bin' file
217
- const firmwareDataMP = firmwareData[`${selectedFirmware.name}/micropython.bin`];
+ // let's remove the .zip extension from the name and use it as the key to access the firmware data.
218
+ const fileKey = selectedFirmware.name.replace('.zip', '') + '/micropython.bin';
219
+ console.log('File key:', fileKey);
220
+ const firmwareDataMP = firmwareData[fileKey];
221
222
this.firmwareString = Array.from(firmwareDataMP)
223
.map(byte => String.fromCharCode(byte))
0 commit comments