This commit is contained in:
rusefi 2024-05-08 21:45:32 -04:00
parent 72b1beaa49
commit 4b43cc3212
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "hardware.h"
#include "mpu_util.h"
#include "ignition_controller.h"
static SPIConfig spiCfg = { .circular = false,
.end_cb = NULL,
@ -199,6 +200,7 @@ void Pt2001::init() {
static bool isInitialized = false;
void Pt2001::initIfNeeded() {
// see also: isIgnVoltage()
if (Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE) < LOW_VBATT) {
isInitialized = false;
efiPrintf("unhappy mc33 due to battery voltage");