summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/interpreter/command_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Concept/Framework/modules/interpreter/command_handler.h')
-rw-r--r--source/Concept/Framework/modules/interpreter/command_handler.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/Concept/Framework/modules/interpreter/command_handler.h b/source/Concept/Framework/modules/interpreter/command_handler.h
index 102797a..c3bc5bb 100644
--- a/source/Concept/Framework/modules/interpreter/command_handler.h
+++ b/source/Concept/Framework/modules/interpreter/command_handler.h
@@ -12,6 +12,11 @@ public:
this->moduleId = 0;
this->currentCommandLength = 0;
this->displayDistanceSensors = false;
+
+ for(uint8 i = 0; i < COMMAND_BUFFER_SIZE; i++)
+ {
+ buffer[i] = 0;
+ }
}
Command_Handler(uint32 commandHandlerId)
@@ -23,13 +28,13 @@ public:
for(uint8 i = 0; i < COMMAND_BUFFER_SIZE; i++)
{
- buffer[i] = NULL;
+ buffer[i] = 0;
}
}
protected:
uint8 currentCommandLength;
- char* buffer[COMMAND_BUFFER_SIZE];
+ uint8 buffer[COMMAND_BUFFER_SIZE];
void ExecuteCommand();