mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-16 07:53:53 +00:00
Decouple PacketBuilder PayloadHandler function from method type.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user