Commit 5919e623 authored by Jonathon Duerig's avatar Jonathon Duerig

Removed extra-sensor SENSOR logging. This should make the SENSOR logs of...

Removed extra-sensor SENSOR logging. This should make the SENSOR logs of normal and replay modes identical except for timestamps (the timestamps should probably use packet timestamps rather than real timestamps anyhow). Also cleared the option lists on loading, so we don't get repeated options from previous packets on replay.
parent 85a3feba
......@@ -135,7 +135,6 @@ void Connection::addSensor(SensorCommand const & newSensor)
void Connection::captureSend(PacketInfo * packet)
{
logWrite(SENSOR, "Captured a send packet");
Sensor * head = measurements.getHead();
packet->elab = elab;
packet->bufferFull = bufferFull;
......@@ -148,7 +147,6 @@ void Connection::captureSend(PacketInfo * packet)
void Connection::captureAck(PacketInfo * packet)
{
logWrite(SENSOR, "Captured an ack packet");
Sensor * head = measurements.getHead();
packet->elab = elab;
packet->bufferFull = bufferFull;
......
......@@ -258,6 +258,7 @@ char * loadHeader(char * buffer, Header * value)
// before the list of optins is destroyed.
char * loadOptions(char * buffer, std::list<Option> * options)
{
options->clear();
char * pos = buffer;
Option current;
......
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