Clean up ERT packet type notation.

Still not great, but at least repeated code is reduced.
This commit is contained in:
Jared Boone
2015-12-06 15:47:04 -08:00
parent 9e004d4754
commit b9643dc988
4 changed files with 20 additions and 27 deletions
+7 -1
View File
@@ -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 };
};