mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 08:39:29 +00:00
Clean up ERT packet type notation.
Still not great, but at least repeated code is reduced.
This commit is contained in:
@@ -242,7 +242,13 @@ public:
|
||||
};
|
||||
|
||||
struct ERTPacket {
|
||||
uint64_t preamble { 0 };
|
||||
enum class Type : uint32_t {
|
||||
Unknown = 0,
|
||||
IDM = 1,
|
||||
SCM = 2,
|
||||
};
|
||||
|
||||
Type type { Type::Unknown };
|
||||
std::bitset<1024> payload;
|
||||
size_t bits_received { 0 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user