A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
add ethernet to action dispatcher
Geo0872f386a7b7
diff --git a/src/Dispatchers/ActionDispatcher.cpp b/src/Dispatchers/ActionDispatcher.cppindex 22be047c..1b1c27d9 100644--- a/src/Dispatchers/ActionDispatcher.cpp+++ b/src/Dispatchers/ActionDispatcher.cpp@@ -144,9 +144,9 @@ void ActionDispatcher::dispatchCommand(const TerminalCommand& cmd) {case ModeEnum::CAN_:provider.getCanController().handleCommand(cmd);break;- // case ModeEnum::ETHERNET:- // provider.getEthernetController().handleCommand(cmd);- // break;+ case ModeEnum::ETHERNET:+ provider.getEthernetController().handleCommand(cmd);+ break;}// Config was handled in specific mode, we need to rerender the pinout view@@ -443,15 +443,15 @@ void ActionDispatcher::setCurrentMode(ModeEnum newMode) {"SO GPIO " + std::to_string(state.getCanSoPin())});break;- // case ModeEnum::ETHERNET:- // provider.getEthernetController().ensureConfigured();- // config.setMappings({- // "CS GPIO " + std::to_string(state.getEthernetCsPin()),- // "SCK GPIO " + std::to_string(state.getEthernetSckPin()),- // "SI GPIO " + std::to_string(state.getEthernetMosiPin()),- // "SO GPIO " + std::to_string(state.getEthernetMisoPin())- // });- // break;+ case ModeEnum::ETHERNET:+ provider.getEthernetController().ensureConfigured();+ config.setMappings({+ "CS GPIO " + std::to_string(state.getEthernetCsPin()),+ "SCK GPIO " + std::to_string(state.getEthernetSckPin()),+ "SI GPIO " + std::to_string(state.getEthernetMosiPin()),+ "SO GPIO " + std::to_string(state.getEthernetMisoPin())+ });+ break;}// Show the new mode pinout