A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
adjust i2c eeprom shell
Geob35124e5282e
diff --git a/src/Shells/I2cEepromShell.cpp b/src/Shells/I2cEepromShell.cppindex f205d156..06728918 100644--- a/src/Shells/I2cEepromShell.cpp+++ b/src/Shells/I2cEepromShell.cpp@@ -26,7 +26,7 @@ void I2cEepromShell::run(uint8_t addr) {// Initialize EEPROMuint16_t selectedType = memoryLengths[selectedModelIndex];- if (!i2cService.initEeprom(selectedType, selectedI2cAddress)) {+ if (!i2cService.initEeprom(selectedType, addr)) {terminalView.println("❌ EEPROM not detected at selected configuration.");return;}@@ -150,7 +150,7 @@ void I2cEepromShell::cmdWrite() {i2cService.eepromWriteByte(addr + i, data[i]);}- terminalView.println("✅ Data written.");+ terminalView.println("✅ Data written.\n");}void I2cEepromShell::cmdDump() {@@ -176,8 +176,8 @@ void I2cEepromShell::cmdErase() {if (confirm) {terminalView.println("Erasing...");i2cService.eepromErase(0x00);- terminalView.println("✅ EEPROM erased.");+ terminalView.println("✅ EEPROM erased.\n");} else {- terminalView.println("Operation cancelled.");+ terminalView.println("Operation cancelled.\n");}}\ No newline at end of filediff --git a/src/Shells/I2cEepromShell.h b/src/Shells/I2cEepromShell.hindex fbde745a..435af3f8 100644--- a/src/Shells/I2cEepromShell.h+++ b/src/Shells/I2cEepromShell.h@@ -18,7 +18,7 @@ public:BinaryAnalyzeManager & binaryAnalyzeManager);- void run(uint8_t addr);+ void run(uint8_t addr = 0x50);private:// Available actions