This commit is contained in:
Silent YANG 2024-07-01 00:00:24 +08:00
parent b854d309bf
commit b5c8a6caaf
3 changed files with 11 additions and 2 deletions

View file

@ -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",

View file

@ -0,0 +1,8 @@
{
"name": "LoseHu 引导程序",
"uart": "losehu",
"charset": "gb2312",
"H": true,
"sat": true,
"newpinyin": true
}

View file

@ -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) + "%<br/>";
nextTick(()=>{
const textarea = document?.getElementById('statusArea');