Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

fix pinout view after logic render

Geobc9733af1534
diff --git a/src/Dispatchers/ActionDispatcher.cpp b/src/Dispatchers/ActionDispatcher.cpp
index bf20244c..51dddfd5 100644
--- a/src/Dispatchers/ActionDispatcher.cpp
+++ b/src/Dispatchers/ActionDispatcher.cpp
@@ -82,7 +82,11 @@ void ActionDispatcher::dispatchCommand(const TerminalCommand& cmd) {
// Global command (help, logic, mode, P, p...)
if (provider.getUtilityController().isGlobalCommand(cmd)) {
provider.getUtilityController().handleCommand(cmd);
- if (cmd.getRoot() != "logic") return; // need rerender pinout view
+ if (cmd.getRoot() == "logic"){
+ // hack to rerender the pinout view after logic analyzer cmd
+ setCurrentMode(state.getCurrentMode());
+ }
+ return;
}
// Mode specific command
@@ -136,7 +140,7 @@ void ActionDispatcher::dispatchCommand(const TerminalCommand& cmd) {
}
// Config was handled in specific mode, we need to rerender the pinout view
- if (cmd.getRoot() == "config" || cmd.getRoot() == "setprotocol" || cmd.getRoot() == "logic") {
+ if (cmd.getRoot() == "config" || cmd.getRoot() == "setprotocol") {
setCurrentMode(state.getCurrentMode());
}
}