diff --git a/IOT/lib/Capteur/src/Ultrason.cpp b/IOT/lib/Capteur/src/Ultrason.cpp index 2ade553..cd25d41 100644 --- a/IOT/lib/Capteur/src/Ultrason.cpp +++ b/IOT/lib/Capteur/src/Ultrason.cpp @@ -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{