feat: création classe abstraite capteur #44
@ -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