This commit is contained in:
rusefi 2020-04-14 19:36:25 -04:00
parent 18c5fba979
commit 8190971fc8
2 changed files with 5 additions and 3 deletions

View File

@ -529,6 +529,8 @@ void setTest33816EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
CONFIG(triggerSimulatorPins[0]) = GPIO_UNASSIGNED;
CONFIG(triggerSimulatorPins[1]) = GPIO_UNASSIGNED;
CONFIG(triggerSimulatorPins[2]) = GPIO_UNASSIGNED;
// blue
CONFIG(mc33816_cs) = GPIOD_7;

View File

@ -354,8 +354,10 @@ void initMc33816(Logging *sharedLogger) {
mcRestart();
}
static void mcRestart() {
flag0before = false;
flag0after = false;
scheduleMsg(logger, "MC Restart");
showStats();
@ -370,8 +372,6 @@ static void mcRestart() {
resetB.setValue(1);
chThdSleepMilliseconds(10);
if (CONFIG(mc33816_flag0) != GPIO_UNASSIGNED) {
efiSetPadMode("mc33816 flag0", CONFIG(mc33816_flag0), getInputMode(PI_DEFAULT));
flag0before = efiReadPin(CONFIG(mc33816_flag0));
}