summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/robot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Concept/Framework/robot.cpp')
-rw-r--r--source/Concept/Framework/robot.cpp7
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 ---