Skip to content

Commit

Permalink
debug output for filtered cloud UDP packets uses correct offsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mcgowan committed Dec 2, 2015
1 parent 696d757 commit 785f0ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/src/system_cloud_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ int Spark_Receive_UDP(unsigned char *buf, uint32_t buflen, void* reserved)
// ignore the packet if from a different source
received = 0;
DEBUG("received from a different address %d.%d.%d.%d:%d",
cloud_endpoint.sa_data[0],
cloud_endpoint.sa_data[1],
cloud_endpoint.sa_data[2],
cloud_endpoint.sa_data[2],
cloud_endpoint.sa_data[3],
((cloud_endpoint.sa_data[4]<<8)+cloud_endpoint.sa_data[5])
cloud_endpoint.sa_data[4],
cloud_endpoint.sa_data[5],
((cloud_endpoint.sa_data[0]<<8)+cloud_endpoint.sa_data[1])
);

}
Expand Down

0 comments on commit 785f0ab

Please sign in to comment.