[packet_transport] Use constexpr for compile-time constants (#14074)
This commit is contained in:
1 parent
76c151c6e6
commit
ee7d63f73a
1 file changed
+3
-3
@@ -58,9 +58,9 @@ union FuData {
|
||||
float f32;
|
||||
};
|
||||
|
||||
static const uint16_t MAGIC_NUMBER = 0x4553;
|
||||
static const uint16_t MAGIC_PING = 0x5048;
|
||||
static const uint32_t PREF_HASH = 0x45535043;
|
||||
static constexpr uint16_t MAGIC_NUMBER = 0x4553;
|
||||
static constexpr uint16_t MAGIC_PING = 0x5048;
|
||||
static constexpr uint32_t PREF_HASH = 0x45535043;
|
||||
enum DataKey {
|
||||
ZERO_FILL_KEY,
|
||||
DATA_KEY,
|
||||
|
||||
Reference in new issue
Block a user