dead test code

This commit is contained in:
Matthew Kennedy 2024-07-11 16:14:21 -07:00
parent dc34635639
commit f88bb77825
5 changed files with 1 additions and 38 deletions

View File

@ -28,39 +28,6 @@
#include "scheduler.h"
#endif /* EFI_PROD_CODE */
#if EFI_PROD_CODE
static int periodIndex = 0;
static OutputPin testPin;
static scheduling_s testScheduling;
static int test557[] = {5, 5, 10, 10, 20, 20, 50, 50, 100, 100, 200, 200, 500, 500, 500, 500};
#define TEST_LEN 16
efitimeus_t testTime;
static void toggleTestAndScheduleNext(void *) {
testPin.toggle();
periodIndex = (periodIndex + 1) % TEST_LEN;
testTime += test557[periodIndex];
engine->executor.scheduleByTimestamp("test", &testScheduling, testTime, &toggleTestAndScheduleNext);
}
/**
* https://github.com/rusefi/rusefi/issues/557 common rail / direct injection scheduling control test
*/
void runSchedulingPrecisionTestIfNeeded(void) {
if (!isBrainPinValid(engineConfiguration->test557pin)) {
return;
}
testPin.initPin("test", engineConfiguration->test557pin);
testPin.setValue(0);
testTime = getTimeNowUs();
toggleTestAndScheduleNext(/*unused*/ nullptr);
}
#endif /* EFI_PROD_CODE */
void setDiscoveryPdm() {
}

View File

@ -9,7 +9,6 @@
#include "engine_configuration.h"
void setFrankensoConfiguration();
void runSchedulingPrecisionTestIfNeeded(void);
void setDiscoveryPdm();
void setFrankensoBoardTestConfiguration();
void setEtbTestConfiguration();

View File

@ -744,7 +744,7 @@ output_pin_e acFanPin;Optional Radiator Fan used with A/C
Gpio[EGT_CHANNEL_COUNT iterate] max31855_cs;
brain_input_pin_e flexSensorPin;Continental/GM flex fuel sensor, 50-150hz type;
Gpio test557pin
uint16_t unused720
pin_output_mode_e stepperDirectionPinMode;
spi_device_e mc33972spiDevice;

View File

@ -290,8 +290,6 @@ void runRusEfiWithConfig() {
// This has to happen after RegisteredOutputPins are init'd: otherwise no change will be detected, and no init will happen
rememberCurrentConfiguration();
runSchedulingPrecisionTestIfNeeded();
}
}

View File

@ -2920,7 +2920,6 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "ETB#2 Disable", etbIo2_disablePin @@if_ts_show_etb_pins
field = "SD CS Pin", sdCardCsPin @@if_ts_show_sd_card
field = "MIL/Check Engine output", malfunctionIndicatorPin
field = "test557pin", test557pin
field = "Fan Pin", fanPin
field = "A/C Relay", acRelayPin
field = "Main Relay Pin", mainRelayPin