This commit is contained in:
Silent YANG 2024-10-02 00:30:51 +08:00
parent f515b73118
commit 0558b04b69
3 changed files with 10 additions and 0 deletions

View file

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

View file

@ -55,6 +55,7 @@ export default {
'global.8kb': '8KB64Kbit',
'global.128kb': '128KB1Mbit',
'global.256kb': '256KB2Mbit',
'global.384kb': '384KB3Mbit',
'global.512kb': '512KB4Mbit',
'menu.rb': '备份/还原',
'menu.flash': '固件升级',

View file

@ -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);