summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/engine.h
diff options
context:
space:
mode:
authormasterm <devnull@localhost>2007-02-16 16:22:03 +0100
committermasterm <devnull@localhost>2007-02-16 16:22:03 +0100
commitba182f0ee0d0dbc798e4c782655f440339dcffdd (patch)
tree91efddcee13188e784336bcac358a4ac92deab9e /source/Concept/Framework/engine.h
parent91b2508dc92a97802353bd2e96f2849c835f0b2a (diff)
downloadrc2007-soccer-ba182f0ee0d0dbc798e4c782655f440339dcffdd.tar
rc2007-soccer-ba182f0ee0d0dbc798e4c782655f440339dcffdd.zip
+++ added AVR_Studio compatibility for framework
Diffstat (limited to 'source/Concept/Framework/engine.h')
-rw-r--r--source/Concept/Framework/engine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Concept/Framework/engine.h b/source/Concept/Framework/engine.h
index 6454a32..2d8c409 100644
--- a/source/Concept/Framework/engine.h
+++ b/source/Concept/Framework/engine.h
@@ -120,15 +120,15 @@ public:
if(pwmSpeed)
{
- *pwmSpeed = uint16(abs(newSpeed / SPEED_PER_PWM));
+ *pwmSpeed = abs(newSpeed / SPEED_PER_PWM);
}
- else if(pwmPort && uint16(abs(newSpeed / SPEED_PER_PWM)))
+ else if(pwmPort && (uint16)(abs(newSpeed / SPEED_PER_PWM)))
{
*pwmPort |= pinPwm;
}
else if(pwmPort)
{
- *pwmPort &= ~pinPwn;
+ *pwmPort &= ~pinPwm;
}
UpdateDirection();