pt2001 typo
(cherry picked from commit 94c33e9e38bce7ee758dfee91816aa7f91b2f2d2)
This commit is contained in:
parent
14e8d6ca6d
commit
816d107b00
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue