mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-06 20:02:38 +00:00
update
This commit is contained in:
parent
f515b73118
commit
0558b04b69
3 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,7 @@ export default {
|
|||
'global.8kb': '8KB (64Kbit)',
|
||||
'global.128kb': '128KB (1Mbit)',
|
||||
'global.256kb': '256KB (2Mbit)',
|
||||
'global.384kb': '384KB (3Mbit)',
|
||||
'global.512kb': '512KB (4Mbit)',
|
||||
'menu.rb': 'Backup/Restore',
|
||||
'menu.flash': 'Flasher',
|
||||
|
|
|
@ -55,6 +55,7 @@ export default {
|
|||
'global.8kb': '8KB(64Kbit)',
|
||||
'global.128kb': '128KB(1Mbit)',
|
||||
'global.256kb': '256KB(2Mbit)',
|
||||
'global.384kb': '384KB(3Mbit)',
|
||||
'global.512kb': '512KB(4Mbit)',
|
||||
'menu.rb': '备份/还原',
|
||||
'menu.flash': '固件升级',
|
||||
|
|
|
@ -117,6 +117,14 @@
|
|||
}
|
||||
await eeprom_write(appStore.connectPort, 0x3FFF8, bk3, 0x08, appStore.configuration?.uart);
|
||||
|
||||
const bk5 = await eeprom_read(appStore.connectPort, 0x5FFF8, 0x08, appStore.configuration?.uart);
|
||||
await eeprom_write(appStore.connectPort, 0x5FFF8, rawEEPROM, 0x08, appStore.configuration?.uart);
|
||||
const check5 = await eeprom_read(appStore.connectPort, 0x5FFF8, 0x08, appStore.configuration?.uart);
|
||||
if(rawEEPROM.toString() == check5.toString()){
|
||||
eepromSize = t('global.384kb')
|
||||
}
|
||||
await eeprom_write(appStore.connectPort, 0x5FFF8, bk5, 0x08, appStore.configuration?.uart);
|
||||
|
||||
const bk4 = await eeprom_read(appStore.connectPort, 0x7FFF8, 0x08, appStore.configuration?.uart);
|
||||
await eeprom_write(appStore.connectPort, 0x7FFF8, rawEEPROM, 0x08, appStore.configuration?.uart);
|
||||
const check4 = await eeprom_read(appStore.connectPort, 0x7FFF8, 0x08, appStore.configuration?.uart);
|
||||
|
|
Loading…
Reference in a new issue