pt2001 typo

(cherry picked from commit 94c33e9e38bce7ee758dfee91816aa7f91b2f2d2)
This commit is contained in:
Matthew Kennedy 2023-05-15 13:28:50 -07:00 committed by rusefi
parent 14e8d6ca6d
commit 816d107b00
1 changed files with 4 additions and 4 deletions

View File

@ -194,14 +194,14 @@ void Pt2001::init() {
initIfNeeded();
}
static bool isInitializaed = false;
static bool isInitialized = false;
void Pt2001::initIfNeeded() {
if (Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE) < LOW_VBATT) {
isInitializaed = false;
isInitialized = false;
} else {
if (!isInitializaed) {
isInitializaed = restart();
if (!isInitialized) {
isInitialized = restart();
}
}
}