From a533973e9c4208d9eff25a80bb5b02c43c614ad7 Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 2 May 2023 11:27:21 +0200 Subject: [PATCH] fix: revert full/empty --- IOT/lib/Capteur/src/Ultrason.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{