Skip to content

Commit

Permalink
[meshcop-tlvs] update name style in DiscoveryResponseTlv (#9671)
Browse files Browse the repository at this point in the history
`CCM` has been replaced with `Ccm` to follow the naming style
conversion for constants and variable names.
  • Loading branch information
abtink authored Dec 1, 2023
1 parent 685094b commit a1816c1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/meshcop/meshcop_tlvs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1365,23 +1365,23 @@ class DiscoveryResponseTlv : public Tlv, public TlvInfo<Tlv::kDiscoveryResponse>
* @retval FALSE If the Commercial Commissioning Mode flag is not set.
*
*/
bool IsCommercialCommissioningMode(void) const { return (mFlags & kCCMMask) != 0; }
bool IsCommercialCommissioningMode(void) const { return (mFlags & kCcmMask) != 0; }

/**
* Sets the Commercial Commissioning Mode flag.
*
* @param[in] aCCM TRUE if set, FALSE otherwise.
* @param[in] aCcm TRUE if set, FALSE otherwise.
*
*/
void SetCommercialCommissioningMode(bool aCCM)
void SetCommercialCommissioningMode(bool aCcm)
{
if (aCCM)
if (aCcm)
{
mFlags |= kCCMMask;
mFlags |= kCcmMask;
}
else
{
mFlags &= ~kCCMMask;
mFlags &= ~kCcmMask;
}
}

Expand All @@ -1390,8 +1390,8 @@ class DiscoveryResponseTlv : public Tlv, public TlvInfo<Tlv::kDiscoveryResponse>
static constexpr uint8_t kVersionMask = 0xf << kVersionOffset;
static constexpr uint8_t kNativeOffset = 3;
static constexpr uint8_t kNativeMask = 1 << kNativeOffset;
static constexpr uint8_t kCCMOffset = 2;
static constexpr uint8_t kCCMMask = 1 << kCCMOffset;
static constexpr uint8_t kCcmOffset = 2;
static constexpr uint8_t kCcmMask = 1 << kCcmOffset;

uint8_t mFlags;
uint8_t mReserved;
Expand Down

0 comments on commit a1816c1

Please sign in to comment.