Revert "dead code?"

This reverts commit b771082419.
This commit is contained in:
rusefillc 2021-12-07 19:44:00 -05:00
parent b771082419
commit 18be72968a
2 changed files with 15 additions and 0 deletions

View File

@ -23,4 +23,8 @@ void slowStartStopButtonCallback();
void setMockVoltage(int hwChannel, float voltage);
#endif
void setMockMapVoltage(float voltage);
void setMockAfrVoltage(float voltage);
void setMockMafVoltage(float voltage);
void printCurrentState(Logging *logging, int seconds, const char *engineTypeName, const char *firmwareBuildId);

View File

@ -41,6 +41,17 @@ void setMockVoltage(int hwChannel, float voltage) {
engine->engineState.mockAdcState.setMockVoltage(hwChannel, voltage);
}
void setMockMafVoltage(float voltage) {
setMockVoltage(engineConfiguration->mafAdcChannel, voltage);
}
void setMockAfrVoltage(float voltage) {
setMockVoltage(engineConfiguration->afr.hwChannel, voltage);
}
void setMockMapVoltage(float voltage) {
setMockVoltage(engineConfiguration->map.sensor.hwChannel, voltage);
}
#endif /* EFI_ENABLE_MOCK_ADC */
#if !EFI_UNIT_TEST