mirror of
https://github.com/siemens-mobile-hacks/web-tools.git
synced 2026-11-25 17:17:22 +00:00
flasher: fix flash bounds not resetting on disconnect
This commit is contained in:
parent
2b61e7fc37
commit
7478babf16
1 changed files with 2 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ const PhoneFlasher: Component = () => {
|
|||
setPhoneInfo(undefined);
|
||||
setConnBaudrate(0);
|
||||
setAreas([]);
|
||||
setFlashBounds({ addr: 0, size: 0 });
|
||||
setStatus(undefined);
|
||||
});
|
||||
};
|
||||
|
|
@ -399,6 +400,7 @@ const PhoneFlasher: Component = () => {
|
|||
return;
|
||||
try {
|
||||
setConnBaudrate(await serial.flasher.getBaudrate().catch(() => 0));
|
||||
setFlashBounds(await serial.flasher.getFullFlashInfo());
|
||||
const areas = await serial.flasher.getMemAreas();
|
||||
setAreas(areas);
|
||||
if (areas.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue