Skip to content

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

default value if nothing provided

Geoa26ccfec5492
diff --git a/src/Managers/UserInputManager.cpp b/src/Managers/UserInputManager.cpp
index 14b87a35..8619f7e5 100644
--- a/src/Managers/UserInputManager.cpp
+++ b/src/Managers/UserInputManager.cpp
@@ -211,7 +211,8 @@ std::string UserInputManager::readValidatedHexString(const std::string& label, s
}
// If ignoring length, ensure at least 1 hex char
- if (ignoreLen && input.empty()) {
+ if (input.empty()) {
+ if (ignoreLen) return "00"; // Default to "00" if empty
terminalView.println("❌ Input cannot be empty.");
continue;
}