summaryrefslogtreecommitdiff
path: root/n
diff options
context:
space:
mode:
Diffstat (limited to 'n')
-rw-r--r--n/asserv/src/pwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/n/asserv/src/pwm.c b/n/asserv/src/pwm.c
index a873b33..04b9a57 100644
--- a/n/asserv/src/pwm.c
+++ b/n/asserv/src/pwm.c
@@ -81,12 +81,12 @@ pwm_update (void)
}
else if (pwm_left < 0)
{
- PORTB &= ~_BV (2);
+ PORTB |= _BV (2);
OCR1B = pwm_preproc (-pwm_left);
}
else
{
- PORTB |= _BV (2);
+ PORTB &= ~_BV (2);
OCR1B = pwm_preproc (pwm_left);
}
/* Set right PWM. */
@@ -96,12 +96,12 @@ pwm_update (void)
}
else if (pwm_right < 0)
{
- PORTB |= _BV (3);
+ PORTB &= ~_BV (3);
OCR1C = pwm_preproc (-pwm_right);
}
else
{
- PORTB &= ~_BV (3);
+ PORTB |= _BV (3);
OCR1C = pwm_preproc (pwm_right);
}
}