Clean-up analog channels in "unit" tests #1456
This commit is contained in:
parent
f32e7c19f4
commit
f2cf1358c1
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
extern int timeNowUs;
|
extern int timeNowUs;
|
||||||
extern WarningCodeState unitTestWarningCodeState;
|
extern WarningCodeState unitTestWarningCodeState;
|
||||||
extern float testMafValue;
|
|
||||||
extern engine_configuration_s & activeConfiguration;
|
extern engine_configuration_s & activeConfiguration;
|
||||||
|
|
||||||
EngineTestHelperBase::EngineTestHelperBase() {
|
EngineTestHelperBase::EngineTestHelperBase() {
|
||||||
|
@ -29,7 +28,7 @@ EngineTestHelperBase::EngineTestHelperBase() {
|
||||||
EngineTestHelper::EngineTestHelper(engine_type_e engineType, configuration_callback_t boardCallback) {
|
EngineTestHelper::EngineTestHelper(engine_type_e engineType, configuration_callback_t boardCallback) {
|
||||||
unitTestWarningCodeState.clear();
|
unitTestWarningCodeState.clear();
|
||||||
|
|
||||||
testMafValue = 0;
|
|
||||||
memset(&activeConfiguration, 0, sizeof(activeConfiguration));
|
memset(&activeConfiguration, 0, sizeof(activeConfiguration));
|
||||||
|
|
||||||
enginePins.reset();
|
enginePins.reset();
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
#include "advance_map.h"
|
#include "advance_map.h"
|
||||||
#include "sensor.h"
|
#include "sensor.h"
|
||||||
|
|
||||||
extern float testMafValue;
|
|
||||||
|
|
||||||
TEST(misc, testMafFuelMath) {
|
TEST(misc, testMafFuelMath) {
|
||||||
printf("====================================================================================== testMafFuelMath\r\n");
|
printf("====================================================================================== testMafFuelMath\r\n");
|
||||||
WITH_ENGINE_TEST_HELPER(FORD_ASPIRE_1996);
|
WITH_ENGINE_TEST_HELPER(FORD_ASPIRE_1996);
|
||||||
|
|
Loading…
Reference in New Issue