Commit fd955b65 authored by Robert Ricci's avatar Robert Ricci
Browse files

Improve type handling in capturePacket - before, when it got an

invalid type, it was it was assuming it was an ack. Now, it will
error out.

This was masking errors in replay, which I am stil trying to track
down.
parent aa446875
......@@ -45,9 +45,12 @@ void Sensor::capturePacket(PacketInfo * packet)
{
localSend(packet);
}
else
else if (packet->packetType == PACKET_INFO_ACK_COMMAND)
{
localAck(packet);
} else {
logWrite(ERROR,"Sensor::capturePacket() got unexpected packet type %d",
packet->packetType);
}
if (next.get() != NULL)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment