[cli] use static constexpr for constants instead of of enum (#9789)

This commit is contained in:
Abtin Keshavarzian
2024-01-22 23:08:29 -08:00
committed by GitHub
parent 84e0e77ce2
commit 7761b81d23
6 changed files with 14 additions and 33 deletions
+1 -4
View File
@@ -399,10 +399,7 @@ exit:
otError UdpExample::PrepareHexStringPayload(otMessage &aMessage, const char *aHexString)
{
enum : uint8_t
{
kBufferSize = 50,
};
static constexpr uint16_t kBufferSize = 50;
otError error;
uint8_t buf[kBufferSize];