mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-28 11:12:26 -04:00
SD card detection and filesystem mounting.
This commit is contained in:
parent
9f6c495fef
commit
987ea3555d
4 changed files with 84 additions and 9 deletions
|
@ -46,6 +46,7 @@ public:
|
|||
TPMSPacket = 6,
|
||||
Shutdown = 8,
|
||||
AISPacket = 7,
|
||||
SDCardStatus = 10,
|
||||
MAX
|
||||
};
|
||||
|
||||
|
@ -245,6 +246,18 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class SDCardStatusMessage : public Message {
|
||||
public:
|
||||
constexpr SDCardStatusMessage(
|
||||
bool is_mounted
|
||||
) : Message { ID::SDCardStatus },
|
||||
is_mounted { is_mounted }
|
||||
{
|
||||
}
|
||||
|
||||
const bool is_mounted;
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
public:
|
||||
using MessageHandler = std::function<void(Message* const p)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue