minor fixes

This commit is contained in:
rusefi 2018-11-21 22:15:22 -05:00
parent 75f81de3a6
commit 1fb7a94d73
2 changed files with 4 additions and 6 deletions

View File

@ -452,9 +452,6 @@ void printAllTriggers() {
for (int triggerId = 1; triggerId < TT_UNUSED; triggerId++) {
trigger_type_e tt = (trigger_type_e) triggerId;
// if (triggerId != 20)
// continue;
printf("Exporting %s\r\n", getTrigger_type_e(tt));
persistent_config_s pc;

View File

@ -299,7 +299,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
actualSynchGap = gap;
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
float gap = 1.0 * toothDurations[i] / toothDurations[i + 1];
print("%d: cur %.2f expected from %.2f to %.2f error=%d",
print("%d: cur %.2f expected from %.2f to %.2f error=%d\r\n",
i,
gap,
TRIGGER_SHAPE(syncronizationRatioFrom[i]),
@ -673,8 +673,9 @@ void TriggerShape::initializeTriggerShape(Logging *logger DECLARE_ENGINE_PARAMET
}
#endif
// Moved here from mainTriggerCallback()
prepareOutputSignals(PASS_ENGINE_PARAMETER_SIGNATURE);
if (!shapeDefinitionError) {
prepareOutputSignals(PASS_ENGINE_PARAMETER_SIGNATURE);
}
}
static void onFindIndexCallback(TriggerState *state) {