change setCalibrationFact to tar

This commit is contained in:
2023-05-02 22:12:28 +02:00
parent 2b4e0fd9ea
commit 922d6e85f0
2 changed files with 9 additions and 7 deletions

View File

@ -49,8 +49,9 @@ String Balance::read() {
}
}
void Balance::setCalibrationFact(int caliFact){
bool Balance::tar(int val){
this->initialized = true;
this->calibrationFact = caliFact;
this->capteur->set_scale(caliFact);
this->calibrationFact = val;
this->capteur->set_scale(val);
return this->initialized;
}