This commit is contained in:
Silent YANG 2024-06-26 21:59:32 +08:00
parent 26b4d9f8c9
commit 75296d3b84

View file

@ -150,6 +150,7 @@ const restoreRange = async (start: any = 0) => {
await eeprom_init(appStore.connectPort);
const input = document.createElement('input');
input.type = 'file';
input.accept = '.bin';
input.onchange = async() => {
const blob = new Blob([input.files[0]], {type: 'application/octet-stream' });
const rawEEPROM = new Uint8Array(await blob.arrayBuffer());