A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
add rfid to dispatcher
Geoe8a975abed56
diff --git a/src/Dispatchers/ActionDispatcher.cpp b/src/Dispatchers/ActionDispatcher.cppindex 8bbd4424..fba99988 100644--- a/src/Dispatchers/ActionDispatcher.cpp+++ b/src/Dispatchers/ActionDispatcher.cpp@@ -148,6 +148,9 @@ void ActionDispatcher::dispatchCommand(const TerminalCommand& cmd) {case ModeEnum::SUBGHZ:provider.getSubGhzController().handleCommand(cmd);break;+ case ModeEnum::RFID:+ provider.getRfidController().handleCommand(cmd);+ break;}// Config was handled in specific mode, we need to rerender the pinout view@@ -463,6 +466,14 @@ void ActionDispatcher::setCurrentMode(ModeEnum newMode) {"CS GPIO " + std::to_string(state.getSubGhzCsPin()),});break;++ case ModeEnum::RFID:+ provider.getRfidController().ensureConfigured();+ config.setMappings({+ "RFID SDA GPIO " + std::to_string(state.getRfidSdaPin()),+ "RFID SCL GPIO " + std::to_string(state.getRfidSclPin())+ });+ break;}// Show the new mode pinout