only: 36/2/2/2 is confusing #5566

writing raw value into meta file - moving logic closer to where it's needed giving TriggerImage more direct access to meta info
This commit is contained in:
Andrey 2023-09-16 00:02:59 -04:00
parent ce67997d22
commit 6eb0619d9c
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class TriggerWheelTSLogic {
triggerTypesWithSecondWheel.append("trigger_type == ").append(wheelInfo.getId());
}
if (wheelInfo.isCrankBased()) {
if (wheelInfo.isCrankBased() && wheelInfo.isKnownOperationMode()) {
appendOrIfNotEmpty(triggerTypesCrankBased);
triggerTypesCrankBased.append("trigger_type == ").append(wheelInfo.getId());
}

View File

@ -89,7 +89,7 @@ extern TriggerDecoderBase initState;
mode == FOUR_STROKE_THREE_TIMES_CRANK_SENSOR ||
mode == FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR ||
mode == FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR;
fprintf(fp, "%s=%s\n", TRIGGER_IS_CRANK_KEY, shape->knownOperationMode && isOneOfCrankShapes ? "true" : "false");
fprintf(fp, "%s=%s\n", TRIGGER_IS_CRANK_KEY, isOneOfCrankShapes ? "true" : "false");
fprintf(fp, "%s=%s\n", TRIGGER_HAS_SECOND_CHANNEL, shape->needSecondTriggerInput ? "true" : "false");
fprintf(fp, "%s=%s\n", TRIGGER_IS_SECOND_WHEEL_CAM, shape->isSecondWheelCam ? "true" : "false");