auto-sync
This commit is contained in:
parent
bc02df9419
commit
55a325f22b
|
@ -572,7 +572,6 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType, Engine *e
|
|||
firmwareError("Unexpected engine type: %d", engineType);
|
||||
}
|
||||
applyNonPersistentConfiguration(logger, engine);
|
||||
parseUserFsio(PASS_ENGINE_PARAMETER_F);
|
||||
|
||||
#if EFI_TUNER_STUDIO
|
||||
syncTunerStudioCopy();
|
||||
|
@ -607,6 +606,7 @@ void applyNonPersistentConfiguration(Logging * logger, Engine *engine) {
|
|||
return;
|
||||
}
|
||||
engine->engineCycleEventCount = engine->triggerShape.getLength();
|
||||
parseUserFsio(PASS_ENGINE_PARAMETER_F);
|
||||
}
|
||||
|
||||
void prepareShapes(Engine *engine) {
|
||||
|
|
|
@ -405,6 +405,7 @@ void initEval(Engine *engine) {
|
|||
#endif
|
||||
|
||||
void parseUserFsio(DECLARE_ENGINE_PARAMETER_F) {
|
||||
board_configuration_s * boardConfiguration = &engineConfiguration->bc;
|
||||
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
||||
brain_pin_e brainPin = boardConfiguration->fsioPins[i];
|
||||
|
||||
|
|
|
@ -340,6 +340,16 @@ static void showFsioInfo(void) {
|
|||
showFsio("ac", acRelayLogic);
|
||||
showFsio("fuel", fuelPumpLogic);
|
||||
|
||||
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
||||
char * exp = boardConfiguration->le_formulas[i];
|
||||
if (exp[0] != 0) {
|
||||
scheduleMsg(&logger, "FSIO #%d [%s] at %s@%dHz = %f", (i + 1), exp, hwPortname(boardConfiguration->fsioPins[i]),
|
||||
boardConfiguration->fsioFrequency[i],
|
||||
engineConfiguration2->fsioLastValue[i]);
|
||||
showFsio("user-defined", fsioLogics[i]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void setFsioFrequency(int index, int frequency) {
|
||||
|
|
|
@ -177,14 +177,6 @@ void printConfiguration(engine_configuration_s *engineConfiguration, engine_conf
|
|||
printSpiState(&logger, boardConfiguration);
|
||||
|
||||
#endif /* EFI_PROD_CODE */
|
||||
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
||||
char * exp = boardConfiguration->le_formulas[i];
|
||||
if (exp[0] != 0) {
|
||||
scheduleMsg(&logger, "FSIO #%d [%s] at %s@%dHz = %f", (i + 1), exp, hwPortname(boardConfiguration->fsioPins[i]),
|
||||
boardConfiguration->fsioFrequency[i],
|
||||
engineConfiguration2->fsioLastValue[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern engine_configuration_s *engineConfiguration;
|
||||
|
|
Loading…
Reference in New Issue