fix: revert full/empty
This commit is contained in:
parent
aed8706921
commit
a533973e9c
@ -9,7 +9,7 @@ Ultrason::Ultrason(int trigeur, int echo, String fullVall):
|
||||
|
||||
String Ultrason::read(){
|
||||
int sortie = this->capteur->read();
|
||||
if (sortie > this->fullVall.toInt())
|
||||
if (sortie < this->fullVall.toInt())
|
||||
{
|
||||
this->full = true;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user