Remove payload_length from PacketBuilder, etc.

This commit is contained in:
Jared Boone 2015-10-02 17:43:02 -07:00
parent 142617ad94
commit 37b1d7cf2f
5 changed files with 3 additions and 14 deletions

View file

@ -23,16 +23,11 @@
void PacketBuilder::configure(
const BitPattern preamble,
const BitPattern unstuff,
size_t new_payload_length
const BitPattern unstuff
) {
preamble_pattern = preamble;
unstuff_pattern = unstuff;
if( new_payload_length <= payload.size() ) {
payload_length = new_payload_length;
}
reset_state();
}