diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index 7c80faa74d..b4a2751660 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -813,6 +813,9 @@ static void enableOrDisable(const char *param, bool isEnabled) { } else if (strEqualCaseInsensitive(param, "trigger_only_front")) { engineConfiguration->useOnlyFrontForTrigger = isEnabled; incrementGlobalConfigurationVersion(); + } else if (strEqualCaseInsensitive(param, "use_only_first_channel")) { + engineConfiguration->trigger.useOnlyFirstChannel = isEnabled; + incrementGlobalConfigurationVersion(); } else if (strEqualCaseInsensitive(param, "two_wire_batch")) { engineConfiguration->twoWireBatch = isEnabled; incrementGlobalConfigurationVersion(); diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index b8dac888f3..005740af9b 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -289,11 +289,12 @@ void triggerInfo(void) { TriggerShape *ts = &engine->triggerShape; - scheduleMsg(logger, "Template %s (%d) trigger %s (%d) useRiseEdge=%s onlyFront=%s gapBothDirections=%s", + scheduleMsg(logger, "Template %s (%d) trigger %s (%d) useRiseEdge=%s onlyFront=%s gapBothDirections=%s useOnlyFirstChannel=%s", getConfigurationName(engineConfiguration->engineType), engineConfiguration->engineType, getTrigger_type_e(engineConfiguration->trigger.type), engineConfiguration->trigger.type, boolToString(TRIGGER_SHAPE(useRiseEdge)), boolToString(engineConfiguration->useOnlyFrontForTrigger), - boolToString(TRIGGER_SHAPE(gapBothDirections))); + boolToString(TRIGGER_SHAPE(gapBothDirections)), + boolToString(engineConfiguration->trigger.useOnlyFirstChannel)); if (engineConfiguration->trigger.type == TT_TOOTHED_WHEEL) { scheduleMsg(logger, "total %d/skipped %d", engineConfiguration->trigger.customTotalToothCount,