auto-sync

This commit is contained in:
rusEfi 2015-01-25 21:04:53 -06:00
parent d6027a30d3
commit 443a8c7ea5
2 changed files with 19 additions and 36 deletions

View File

@ -149,39 +149,17 @@ static void fuelbench2(const char *delayStr, const char *indexStr, const char *
}
void fanBench(void) {
brainPin = boardConfiguration->fanPin;
pinX = &enginePins.fanRelay;
delayMs = 0;
onTime = 3000;
offTime = 0;
count = 1;
needToRunBench = true;
pinbench("0", "3000", "0", "1", &enginePins.fanRelay, boardConfiguration->fanPin);
}
extern OutputPin checkEnginePin;
void milBench(void) {
// brainPin = boardConfiguration->malfunctionIndicatorPin;
// pinX = C;
//
// delayMs = 0;
// onTime = 3000;
// offTime = 0;
// count = 1;
//
// needToRunBench = true;
pinbench("0", "3000", "0", "1", &checkEnginePin, boardConfiguration->malfunctionIndicatorPin);
}
void fuelPumpBench(void) {
brainPin = boardConfiguration->fuelPumpPin;
pinX = &enginePins.fuelPumpRelay;
delayMs = 0;
onTime = 3000;
offTime = 0;
count = 1;
needToRunBench = true;
pinbench("0", "3000", "0", "1", &enginePins.fuelPumpRelay, boardConfiguration->fuelPumpPin);
}
// fuelbench 5 1000 2

View File

@ -100,12 +100,17 @@ static msg_t mfiThread(void)
}
}
void initMalfunctionIndicator(Engine *engine) {
// create static thread
chThdCreateStatic(mfiThreadStack, sizeof(mfiThreadStack), LOWPRIO, (tfunc_t) mfiThread, NULL);
// only for debug
static void testMil(void) {
addError(OBD_Engine_Coolant_Temperature_Circuit_Malfunction);
addError(OBD_Intake_Air_Temperature_Circuit_Malfunction);
}
void initMalfunctionIndicator(Engine *engine) {
// create static thread
chThdCreateStatic(mfiThreadStack, sizeof(mfiThreadStack), LOWPRIO, (tfunc_t) mfiThread, NULL);
addConsoleAction("testmil", testMil);
}
#endif /* EFI_MALFUNCTION_INDICATOR */