aboutsummaryrefslogtreecommitdiff
path: root/libraries/Servo/Servo.cpp
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-07-13 19:26:59 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-07-13 19:26:59 +0000
commitf1a76708088659850b98a92779a2cb1aaf5793d8 (patch)
treeb52d49b39e34088be27cba4bffbad5ff91d5b63b /libraries/Servo/Servo.cpp
parent1342c837d4915cbd109321ca8b38df4f8cd03ce0 (diff)
Changing pin outs on LiquidCrystal examples and adding parentheses to Servo code.
Diffstat (limited to 'libraries/Servo/Servo.cpp')
-rwxr-xr-xlibraries/Servo/Servo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/Servo/Servo.cpp b/libraries/Servo/Servo.cpp
index 4d04145..248a215 100755
--- a/libraries/Servo/Servo.cpp
+++ b/libraries/Servo/Servo.cpp
@@ -69,12 +69,12 @@ uint8_t Servo::attach(int pinArg)
if (pin == 9) {
attached9 = 1;
- TCCR1A = TCCR1A & ~_BV(COM1A0) | _BV(COM1A1);
+ TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
}
if (pin == 10) {
attached10 = 1;
- TCCR1A = TCCR1A & ~_BV(COM1B0) | _BV(COM1B1);
+ TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
}
return 1;
}