diff --git a/src/components/navbar/index.vue b/src/components/navbar/index.vue index 91e557c..b492818 100644 --- a/src/components/navbar/index.vue +++ b/src/components/navbar/index.vue @@ -224,6 +224,7 @@ const toggleDrawerMenu = inject('toggleDrawerMenu') as () => void; const configuration_list : any = { + "L_BL[0-9][0-9][0-9]": "losehubl.json", "LOSEHU.*P.*K" : "ltsk.json", "LOSEHU.*P.*" : "lts.json", "LOSEHU13[0-9].*HS" : "losehu124h.json", diff --git a/src/drivers/losehubl.json b/src/drivers/losehubl.json new file mode 100644 index 0000000..bf8a859 --- /dev/null +++ b/src/drivers/losehubl.json @@ -0,0 +1,8 @@ +{ + "name": "LoseHu 引导程序", + "uart": "losehu", + "charset": "gb2312", + "H": true, + "sat": true, + "newpinyin": true +} diff --git a/src/views/list/bl/index.vue b/src/views/list/bl/index.vue index dfe5ff7..993bd70 100644 --- a/src/views/list/bl/index.vue +++ b/src/views/list/bl/index.vue @@ -94,8 +94,8 @@ } const writeRange = async (start: any = 0, uint8Array: any, remark: string = '') => { - for (let i = start; i < uint8Array.length + start; i += 0x40) { - await eeprom_write(appStore.connectPort, i, uint8Array.slice(i - start, i - start + 0x40), uint8Array.slice(i - start, i - start + 0x40).length, appStore.configuration?.uart); + for (let i = start; i < uint8Array.length + start; i += 0xC0) { + await eeprom_write(appStore.connectPort, i, uint8Array.slice(i - start, i - start + 0xC0), uint8Array.slice(i - start, i - start + 0xC0).length, appStore.configuration?.uart); state.status = state.status + remark + "写入进度:" + (((i - start) / uint8Array.length) * 100).toFixed(1) + "%
"; nextTick(()=>{ const textarea = document?.getElementById('statusArea');