mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
update
This commit is contained in:
parent
b854d309bf
commit
b5c8a6caaf
3 changed files with 11 additions and 2 deletions
|
@ -224,6 +224,7 @@
|
||||||
const toggleDrawerMenu = inject('toggleDrawerMenu') as () => void;
|
const toggleDrawerMenu = inject('toggleDrawerMenu') as () => void;
|
||||||
|
|
||||||
const configuration_list : any = {
|
const configuration_list : any = {
|
||||||
|
"L_BL[0-9][0-9][0-9]": "losehubl.json",
|
||||||
"LOSEHU.*P.*K" : "ltsk.json",
|
"LOSEHU.*P.*K" : "ltsk.json",
|
||||||
"LOSEHU.*P.*" : "lts.json",
|
"LOSEHU.*P.*" : "lts.json",
|
||||||
"LOSEHU13[0-9].*HS" : "losehu124h.json",
|
"LOSEHU13[0-9].*HS" : "losehu124h.json",
|
||||||
|
|
8
src/drivers/losehubl.json
Normal file
8
src/drivers/losehubl.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "LoseHu 引导程序",
|
||||||
|
"uart": "losehu",
|
||||||
|
"charset": "gb2312",
|
||||||
|
"H": true,
|
||||||
|
"sat": true,
|
||||||
|
"newpinyin": true
|
||||||
|
}
|
|
@ -94,8 +94,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const writeRange = async (start: any = 0, uint8Array: any, remark: string = '') => {
|
const writeRange = async (start: any = 0, uint8Array: any, remark: string = '') => {
|
||||||
for (let i = start; i < uint8Array.length + start; i += 0x40) {
|
for (let i = start; i < uint8Array.length + start; i += 0xC0) {
|
||||||
await eeprom_write(appStore.connectPort, i, uint8Array.slice(i - start, i - start + 0x40), uint8Array.slice(i - start, i - start + 0x40).length, appStore.configuration?.uart);
|
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/>";
|
state.status = state.status + remark + "写入进度:" + (((i - start) / uint8Array.length) * 100).toFixed(1) + "%<br/>";
|
||||||
nextTick(()=>{
|
nextTick(()=>{
|
||||||
const textarea = document?.getElementById('statusArea');
|
const textarea = document?.getElementById('statusArea');
|
||||||
|
|
Loading…
Reference in a new issue