add debug poids
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user