Decouple PacketBuilder PayloadHandler function from method type.

This commit is contained in:
Jared Boone
2015-09-28 12:46:44 -07:00
parent 1bdad62496
commit cf3bff3b03
3 changed files with 20 additions and 16 deletions

View File

@@ -84,7 +84,11 @@ private:
[this](const float symbol) { this->consume_symbol(symbol); }
};
symbol_coding::NRZIDecoder nrzi_decode;
PacketBuilder packet_builder;
PacketBuilder packet_builder {
[this](const PacketBuilder::PayloadType& payload, const size_t bits_received) {
this->payload_handler(payload, bits_received);
}
};
MessageHandlerMap& message_handlers;