mirror of https://github.com/FOME-Tech/fome-fw.git
pt2001 typo
This commit is contained in:
parent
2c6c0a5337
commit
94c33e9e38
|
@ -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