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;