fix: revert full/empty

This commit is contained in:
Clement 2023-05-02 11:27:21 +02:00
parent aed8706921
commit a533973e9c

View File

@ -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{