Remove duplicate code

This commit is contained in:
GHOSCHT 2022-04-10 16:20:26 +02:00
parent fc1ca449d9
commit 3c163a8f15
No known key found for this signature in database
GPG key ID: A35BD466B8871994

View file

@ -1,6 +1,6 @@
#include <StreamCommunicator.h>
StreamCommunicator::StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize) :Communicator(bufferSize), stream(s_out)
StreamCommunicator::StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize) : Communicator(bufferSize), stream(s_out)
{
}
@ -8,7 +8,7 @@ void StreamCommunicator::sendMessage(int *values, __SIZE_TYPE__ numberOfValues)
{
char message[calculateMessageOutSize(numberOfValues)];
parseIDs(values, numberOfValues, message);
stream.println(message);
sendMessage(message);
}
void StreamCommunicator::sendMessage(const char message[])
@ -25,6 +25,3 @@ char *StreamCommunicator::receiveMessage()
}
return getBuffer();
}