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:
parent
ce67997d22
commit
6eb0619d9c
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue