Réception des commandes suite à un retour chariot
This commit is contained in:
@@ -27,7 +27,7 @@ void loop() {
|
||||
if(Serial.available())
|
||||
{
|
||||
char c = Serial.read();
|
||||
if(c == '\n'){
|
||||
if(c == '\n' || c == '\r'){
|
||||
traiterCommande();
|
||||
chaine = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user