aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise09/IntPacket.cpp
blob: a4b4842a75e15c6e7fa2b330df4569aa0af65e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "IntPacket.h"
#include "CommunicationPacket.h"

IntPacket::IntPacket() : CommunicationPacket() {
	data = 0;
}

IntPacket::IntPacket(unsigned startAddress, unsigned endAddress, int data) : CommunicationPacket(startAddress, endAddress) {
	this->data = data;
	this->dataSize = sizeof(int);
}