update compass lib
This commit is contained in:
@@ -73,7 +73,7 @@ void CalibrateCompass::start() {
|
||||
|
||||
this->clearData();
|
||||
this->state = State::Calibrating;
|
||||
this->compass->removeCalibration();
|
||||
this->compass->clearCalibration();
|
||||
this->lastChange = millis();
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ void CalibrateCompass::useData() {
|
||||
}
|
||||
|
||||
void CalibrateCompass::removeCalibration() {
|
||||
this->compass->removeCalibration();
|
||||
this->compass->clearCalibration();
|
||||
}
|
||||
|
||||
void CalibrateCompass::reset() {
|
||||
|
||||
@@ -52,6 +52,6 @@ class CalibrateCompass {
|
||||
void clearData();
|
||||
|
||||
bool dataValid = false;
|
||||
const uint16_t maxTimeWithoutChange = 5000;
|
||||
const uint16_t maxTimeWithoutChange = 10000;
|
||||
uint32_t lastChange = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user