trigger_input_exti: fix comment position

This commit is contained in:
Andrey Gusakov 2024-03-06 00:02:38 +03:00 committed by rusefillc
parent 8871bd18b8
commit b79b6cf74b
1 changed files with 4 additions and 3 deletions

View File

@ -58,13 +58,14 @@ int extiTriggerTurnOnInputPin(const char *msg, int index, bool isTriggerShaft) {
efiPrintf("extiTriggerTurnOnInputPin %s %s", msg, hwPortname(brainPin));
/* TODO:
* * do not set to both edges if we need only one
* * simplify callback in case of one edge */
if (efiExtiEnablePin(msg, brainPin, PAL_EVENT_MODE_BOTH_EDGES,
isTriggerShaft ? shaft_callback : cam_callback, (void *)index) < 0) {
return -1;
}
/* TODO:
* * do not set to both edges if we need only one
* * simplify callback in case of one edge */
ioline_t pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
if (isTriggerShaft) {
shaftLines[index] = pal_line;