pt2001 typo
(cherry picked from commit 94c33e9e38bce7ee758dfee91816aa7f91b2f2d2)
This commit is contained in:
parent
14e8d6ca6d
commit
816d107b00
|
@ -194,14 +194,14 @@ void Pt2001::init() {
|
||||||
initIfNeeded();
|
initIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isInitializaed = false;
|
static bool isInitialized = false;
|
||||||
|
|
||||||
void Pt2001::initIfNeeded() {
|
void Pt2001::initIfNeeded() {
|
||||||
if (Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE) < LOW_VBATT) {
|
if (Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE) < LOW_VBATT) {
|
||||||
isInitializaed = false;
|
isInitialized = false;
|
||||||
} else {
|
} else {
|
||||||
if (!isInitializaed) {
|
if (!isInitialized) {
|
||||||
isInitializaed = restart();
|
isInitialized = restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue