diff options
author | masterm <devnull@localhost> | 2007-02-16 16:22:03 +0100 |
---|---|---|
committer | masterm <devnull@localhost> | 2007-02-16 16:22:03 +0100 |
commit | ba182f0ee0d0dbc798e4c782655f440339dcffdd (patch) | |
tree | 91efddcee13188e784336bcac358a4ac92deab9e /source/Concept/Framework/engine.h | |
parent | 91b2508dc92a97802353bd2e96f2849c835f0b2a (diff) | |
download | rc2007-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.h | 6 |
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();
|