Skip to content

Commit

Permalink
Ping service replies with same size as request
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperBroekhuizen committed Jan 22, 2020
1 parent 2ef8cf8 commit b0135fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PingService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool PingService::process(DataMessage &command, DataMessage &workingBuffer)
// prepare response frame
//workingBuffer.setDestination(command.getSource());
//workingBuffer.setSource(interface.getAddress());
workingBuffer.setSize(2);
workingBuffer.setSize(command.getSize());
workingBuffer.getPayload()[0] = PING_SERVICE;

if (command.getPayload()[1] == SERVICE_RESPONSE_REQUEST)
Expand Down

0 comments on commit b0135fe

Please sign in to comment.