[mle] ensure reserved bit in Mode TLV is set (#6107)

This commit is contained in:
Łukasz Duda
2021-01-22 11:51:01 -08:00
committed by GitHub
parent 099333375f
commit a751b35748
+1 -4
View File
@@ -345,10 +345,7 @@ public:
* @param[in] aMode A mode TLV bitmask to initialize the `DeviceMode` object.
*
*/
explicit DeviceMode(uint8_t aMode)
: mMode(aMode)
{
}
explicit DeviceMode(uint8_t aMode) { Set(aMode); }
/**
* This constructor initializes a `DeviceMode` object from a given mode configuration structure.