diff --git a/firmware/hw_layer/sensors/joystick.cpp b/firmware/hw_layer/sensors/joystick.cpp index 97eaa15f1e..b37df09c12 100644 --- a/firmware/hw_layer/sensors/joystick.cpp +++ b/firmware/hw_layer/sensors/joystick.cpp @@ -102,6 +102,7 @@ void stopJoystickPins() { } void startJoystickPins() { + // todo: extract 'configurePalInputPin() method? efiSetPadMode("joy center", CONFIGB(joystickCenterPin), PAL_MODE_INPUT_PULLUP); efiSetPadMode("joy A", CONFIGB(joystickAPin), PAL_MODE_INPUT_PULLUP); // not used so far efiSetPadMode("joy B", CONFIGB(joystickBPin), PAL_MODE_INPUT_PULLUP); diff --git a/firmware/hw_layer/trigger_input.cpp b/firmware/hw_layer/trigger_input.cpp index 838d5395e5..48fd815a01 100644 --- a/firmware/hw_layer/trigger_input.cpp +++ b/firmware/hw_layer/trigger_input.cpp @@ -104,6 +104,7 @@ static int turnOnTriggerInputPin(const char *msg, brain_pin_e brainPin, bool is_ scheduleMsg(logger, "turnOnTriggerInputPin(PAL) %s %s", msg, hwPortname(brainPin)); pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin)); + // todo efiSetPadMode(msg, brainPin, mode); or reuse joystick code? configurePalInputPin? brain_pin_markUsed(brainPin, msg); palEnableLineEvent(pal_line, PAL_EVENT_MODE_BOTH_EDGES);