mirror of
https://github.com/espressif/openthread.git
synced 2026-09-07 17:50:09 +00:00
[cli] use static constexpr for constants instead of of enum (#9789)
This commit is contained in:
+1
-4
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user