aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise09/CommunicationPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week10/Exercise09/CommunicationPacket.cpp')
-rw-r--r--week10/Exercise09/CommunicationPacket.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/week10/Exercise09/CommunicationPacket.cpp b/week10/Exercise09/CommunicationPacket.cpp
new file mode 100644
index 0000000..4e9cb58
--- /dev/null
+++ b/week10/Exercise09/CommunicationPacket.cpp
@@ -0,0 +1,10 @@
+#include "CommunicationPacket.h"
+
+CommunicationPacket::CommunicationPacket(unsigned startAddress, unsigned endAddress) {
+ this->startAddress = startAddress;
+ this->endAddress = endAddress;
+ dataSize = 0;
+}
+
+CommunicationPacket::CommunicationPacket() : CommunicationPacket(0, 0) {
+}