Skip to content

Commit

Permalink
Adding missing length definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangness committed Apr 20, 2018
1 parent 2fbb79f commit c939062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RPi/pyRF24Network/pyRF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ bp::tuple peek_read_wrap(RF24Network& ref, size_t maxlen)
RF24NetworkHeader header;

ref.peek(header, buf, maxlen);
uint16_t len = ref.peek(header);
bp::object py_ba(bp::handle<>(PyByteArray_FromStringAndSize(buf, len)));
delete[] buf;

Expand Down

0 comments on commit c939062

Please sign in to comment.