revive MC33816 driver, also support bus sharing #6781

handling loss of power
only:alphax-4k-gdi
This commit is contained in:
rusefi 2024-08-27 19:50:39 -04:00
parent 3f34e9c1ee
commit c6560ea370
2 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,7 @@ pins:
type: ls type: ls
- pin: 6A - pin: 6A
function: GDI Injector 3 Positive function: GDI Injector 2 Positive
- pin: 7A - pin: 7A
function: GDI Injector 2 Negative function: GDI Injector 2 Negative
@ -35,7 +35,7 @@ pins:
type: ls type: ls
- pin: 8A - pin: 8A
function: GDI Injector 2 Positive function: GDI Injector 1 Positive
- pin: 9A - pin: 9A
function: GDI Injector 1 Negative function: GDI Injector 1 Negative

View File

@ -268,6 +268,10 @@ static THD_FUNCTION(mc33_driver_thread, p) {
while (true) { while (true) {
if (!isIgnVoltage()) { if (!isIgnVoltage()) {
if (isInitialized) {
efiPrintf("Power loss? Would have to re-init mc33/PT2001?");
isInitialized = false;
}
chThdSleepMilliseconds(100); chThdSleepMilliseconds(100);
continue; continue;
} }