Skip to content

Commit

Permalink
fixed ordering of firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 10, 2024
1 parent e06d604 commit 054529e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/UpdatePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,15 @@ export default class UpdatePanel extends Panel {
throw new Error('Failed to fetch boot_app0.bin from local server');
}

firmwareFiles.push({
// Create the boot_app0.bin entry
const bootAppEntry = {
path: './public/data/boot_app0.bin',
address: 0xE000,
data: new Uint8Array(await bootAppResponse.arrayBuffer()),
});
};

// Insert boot_app0.bin as the 3rd item in the list
firmwareFiles.splice(2, 0, bootAppEntry);
} catch (error) {
console.error('Error during firmware fetching:', error.message);
throw error;
Expand Down

0 comments on commit 054529e

Please sign in to comment.