From baf22acf62105d8883242bd747c31bc6059c79cc Mon Sep 17 00:00:00 2001 From: Samuel <samuel.kay@poivron-robotique.fr> Date: Sun, 10 Mar 2024 19:03:18 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20du=20sens=20du=20pilotage=20du=20m?= =?UTF-8?q?oteur=20A=20:=20Le=20cable=20a=20=C3=A9t=C3=A9=20invers=C3=A9?= =?UTF-8?q?=20lorsqu'il=20a=20=C3=A9t=C3=A9=20raccourci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Moteurs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moteurs.c b/Moteurs.c index d4a5480..11e727c 100644 --- a/Moteurs.c +++ b/Moteurs.c @@ -75,9 +75,9 @@ void Moteur_SetVitesse(enum t_moteur moteur, int16_t vitesse ){ case MOTEUR_A: pwm_set_chan_level(slice_moteur_A, PWM_CHAN_A, u_vitesse); if(vitesse < 0){ - gpio_put(MOTEUR_A_SENS, 0); - }else{ gpio_put(MOTEUR_A_SENS, 1); + }else{ + gpio_put(MOTEUR_A_SENS, 0); } break;