mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-15 21:20:15 +00:00
Add Shutdown message, plumbing to send and handle.
This commit is contained in:
@@ -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)>;
|
||||
|
Reference in New Issue
Block a user