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/robot.cpp | |
parent | 91b2508dc92a97802353bd2e96f2849c835f0b2a (diff) | |
download | rc2007-soccer-ba182f0ee0d0dbc798e4c782655f440339dcffdd.tar rc2007-soccer-ba182f0ee0d0dbc798e4c782655f440339dcffdd.zip |
+++ added AVR_Studio compatibility for framework
Diffstat (limited to 'source/Concept/Framework/robot.cpp')
-rw-r--r-- | source/Concept/Framework/robot.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Concept/Framework/robot.cpp b/source/Concept/Framework/robot.cpp index 3d3ae48..f14f2f7 100644 --- a/source/Concept/Framework/robot.cpp +++ b/source/Concept/Framework/robot.cpp @@ -45,7 +45,10 @@ Robot::Robot() sei();
//Interface
- memset(modules, NULL, sizeof(modules));
+ for(uint8 i = 0; i < IO_END; i++)
+ {
+ modules[i] = NULL;
+ }
}
//-----------------------------------------------------------------------------
@@ -120,7 +123,7 @@ uint16 Robot::GetADCValue(uint8 channel) result /= 3;
- return uint16(result);
+ return (uint16)(result);
}
//--- EOF --- |