A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
add comments
Geo9e03adebd15e
diff --git a/src/Managers/UserInputManager.cpp b/src/Managers/UserInputManager.cppindex 97f47287..d35a3bf0 100644--- a/src/Managers/UserInputManager.cpp+++ b/src/Managers/UserInputManager.cpp@@ -201,16 +201,16 @@ std::string UserInputManager::readValidatedHexString(const std::string& label, sterminalView.print(label + " (hex, " + std::to_string(numBytes * 2) + " digits): ");std::string input = getLine();- // Supprimer les espaces éventuels+ // Erase space if anyinput.erase(std::remove_if(input.begin(), input.end(), ::isspace), input.end());- // Vérifie la longueur+ // Verify lengthif (input.length() != numBytes * 2) {terminalView.println("❌ Invalid length. Expected " + std::to_string(numBytes * 2) + " hex digits.");continue;}- // Vérifie que chaque caractère est hexadécimal+ // Verify each char as hexadecimalbool valid = std::all_of(input.begin(), input.end(), [](char c) {return std::isxdigit(static_cast<unsigned char>(c));});