This commit is contained in:
rusefi 2020-01-03 21:41:51 -05:00
commit e312f25497
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ void turnOnTriggerInputPin(const char *msg, int index, bool isTriggerShaft) {
}
digital_input_s* input = startDigitalCapture("trigger", brainPin, true);
if (input == NULL) {
/* error already reported */
return;
}
if (isTriggerShaft) {
void * arg = (void*) (index == 0);
input->setWidthCallback((VoidInt)(void*)shaftWidthCallback, arg);