Skip to content

Commit

Permalink
Merge pull request #595 from intechstudio/bug/nvm
Browse files Browse the repository at this point in the history
🚩PR: NVM erase not flushing runtime is fixed
  • Loading branch information
elsoazemelet authored Feb 12, 2024
2 parents 76308af + 5fccb57 commit 6f659b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/renderer/main/panels/preferences/Preferences.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { configManager } from "./../configuration/Configuration.store.js";
import { logger } from "./../../../runtime/runtime.store.js";
import { writable, get } from "svelte/store";
import { instructions } from "../../../serialport/instructions";
Expand Down Expand Up @@ -263,11 +264,13 @@
.sendNVMEraseToGrid()
.then((res) => {
runtime.erase();
logger.set({
type: "success",
mode: 0,
classname: "nvmerase",
message: `Erase complete!`,
configManager.refresh().then(() => {
logger.set({
type: "success",
mode: 0,
classname: "nvmerase",
message: `Erase complete!`,
});
});
})
.catch((e) => {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/runtime/runtime.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ function create_runtime() {
page.control_elements.forEach((events) => {
events.events.forEach((event) => {
event.config = undefined;
event.stored = undefined;
});
});
});
Expand Down

0 comments on commit 6f659b4

Please sign in to comment.