better MC33816 start-up status

This commit is contained in:
rusefi 2020-11-18 01:07:09 -05:00
parent 44a0bade05
commit dc3b14e5fc
1 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,7 @@
EXTERN_ENGINE;
static bool isInitializaed = false;
static OutputPin chipSelect;
static OutputPin resetB;
@ -59,6 +60,9 @@ static bool validateChipId() {
}
static void showStats() {
if (!isInitializaed) {
scheduleMsg(logger, "WAITINIG FOR VBatt...");
}
// x9D is product code or something, and 43 is the revision?
scheduleMsg(logger, "MC 0x%x %s", mcChipId, validateChipId() ? "hooray!" : "not hooray :(");
@ -586,7 +590,6 @@ void initMc33816IfNeeded() {
if (!haveMc33816) {
return;
}
static bool isInitializaed = false;
if (engine->sensors.vBatt < LOW_VBATT) {
isInitializaed = false;
} else {