[packet_transport] Use constexpr for compile-time constants (#14074)

This commit is contained in:
J. Nick Koston
2026-02-18 21:09:49 -06:00
committed by GitHub
parent 76c151c6e6
commit ee7d63f73a

View File

@@ -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,