Permalink
Browse files

packet content length bugfix

  • Loading branch information...
gioblu committed Aug 9, 2016
1 parent 7cec0b6 commit 1b594d2d7c4807fbdcf422630b4d51b2c564166c
Showing with 1 addition and 1 deletion.
  1. +1 −1 PJON.h
2 PJON.h
@@ -299,7 +299,7 @@ limitations under the License. */
get_packet_info(data, last_packet_info);
uint8_t payload_offset = 3 + (shared ? (includes_sender_info ? 9 : 4) : (includes_sender_info ? 1 : 0));
_receiver(data + payload_offset, data[3] - payload_offset - 1, last_packet_info);
_receiver(data + payload_offset, data[1] - payload_offset - 1, last_packet_info);
return ACK;
} else {
if(acknowledge_requested && data[0] != BROADCAST && _mode != SIMPLEX)

0 comments on commit 1b594d2

Please sign in to comment.