mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-09 10:15:18 -04:00
Move FSKPacket message handler to ReceiverView.
This commit is contained in:
parent
c44357a16a
commit
2aa8ae0d1f
2 changed files with 7 additions and 5 deletions
|
@ -480,9 +480,16 @@ ReceiverView::ReceiverView(
|
|||
};
|
||||
|
||||
receiver_model.enable();
|
||||
|
||||
context().message_map[Message::ID::FSKPacket] = [](const Message* const p) {
|
||||
const auto message = static_cast<const FSKPacketMessage*>(p);
|
||||
(void)message;
|
||||
};
|
||||
}
|
||||
|
||||
ReceiverView::~ReceiverView() {
|
||||
context().message_map[Message::ID::FSKPacket] = nullptr;
|
||||
|
||||
// TODO: Manipulating audio codec here, and in ui_receiver.cpp. Good to do
|
||||
// both?
|
||||
audio_codec.headphone_mute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue