parent
b771082419
commit
18be72968a
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue