Something something unit test ETB does not work #1966

This commit is contained in:
rusefillc 2020-11-18 20:12:58 -05:00
parent e29911114a
commit ee7e1880a2
2 changed files with 10 additions and 2 deletions

View File

@ -56,7 +56,10 @@ void applyIACposition(percent_t position DECLARE_ENGINE_PARAMETER_SUFFIX) {
if (CONFIG(useETBforIdleControl)) { if (CONFIG(useETBforIdleControl)) {
if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) { if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) {
//todo: something is wrong here in unit test mode?
#if !EFI_UNIT_TEST
firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No ETB to use for idle"); firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No ETB to use for idle");
#endif
return; return;
} }

View File

@ -5,6 +5,11 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#include "test_signal_executor.h" #include "engine_test_helper.h"
#include "engine_controller.h"
TEST(start, startStop) {
WITH_ENGINE_TEST_HELPER(BMW_M73_PROTEUS);
// this is a pull-up, so 'true' on start-up
setMockState(engineConfiguration->starterControlPin, true PASS_ENGINE_PARAMETER_SUFFIX);
}