pt2001 typo

This commit is contained in:
Matthew Kennedy 2023-05-15 13:28:50 -07:00
parent 2c6c0a5337
commit 94c33e9e38
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();
}
}
}