mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 11:36:38 -04:00
Abstract packet type/implementation details.
This commit is contained in:
parent
b9ea7fa786
commit
bd33e652ea
16 changed files with 129 additions and 90 deletions
|
@ -60,11 +60,9 @@ void AISProcessor::consume_symbol(
|
|||
}
|
||||
|
||||
void AISProcessor::payload_handler(
|
||||
const std::bitset<1024>& payload,
|
||||
const size_t bits_received
|
||||
const ::Packet& packet
|
||||
) {
|
||||
AISPacketMessage message;
|
||||
message.packet.payload = payload;
|
||||
message.packet.bits_received = bits_received;
|
||||
message.packet.packet = packet;
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue