mc33 fix
This commit is contained in:
parent
ae8936b93b
commit
d788348d7c
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue