add debug poids

This commit is contained in:
2023-05-09 10:26:50 +02:00
parent 922d6e85f0
commit 107ca935b8
2 changed files with 10 additions and 7 deletions

View File

@ -41,13 +41,14 @@ boolean Balance::calibration(int poidsRef,int moyenne_calibration) {
}
String Balance::read() {
int sortie = (int)this->capteur->get_units();
this->full = sortie > this->fullVall.toInt();
if (this->initialized == true) {
return String(this->capteur->get_units());
return String(sortie);
} else {
return "0";
}
}
}//TODO: update isfull
bool Balance::tar(int val){
this->initialized = true;