mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-29 03:31:26 -04:00
Add Shutdown message, plumbing to send and handle.
This commit is contained in:
parent
15791e345d
commit
690c3c98db
7 changed files with 58 additions and 11 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
BasebandConfiguration = 5,
|
||||
FSKConfiguration = 6,
|
||||
FSKPacket = 7,
|
||||
TestResults = 8,
|
||||
Shutdown = 8,
|
||||
MAX
|
||||
};
|
||||
|
||||
|
@ -233,6 +233,14 @@ public:
|
|||
FSKPacket packet;
|
||||
};
|
||||
|
||||
class ShutdownMessage : public Message {
|
||||
public:
|
||||
constexpr ShutdownMessage(
|
||||
) : Message { ID::Shutdown }
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
public:
|
||||
using MessageHandler = std::function<void(const Message* const p)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue