Skip to content

Commit 0341d5c

Browse files
committed
disconnection_reason_t from raw uint8_t should be explicited an undocumented
1 parent 0b163ff commit 0341d5c

File tree

1 file changed

+3
-1
lines changed
  • features/FEATURE_BLE/ble/gap

1 file changed

+3
-1
lines changed

features/FEATURE_BLE/ble/gap/Types.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,17 +861,19 @@ struct disconnection_reason_t : SafeEnum<disconnection_reason_t, uint8_t> {
861861
{
862862
}
863863

864+
#if !defined(DOXYGEN_ONLY)
864865
/**
865866
* Construct a new instance of disconnection_reason_t.
866867
*
867868
* @param value The value of the local_disconnection_reason_t created.
868869
*
869870
* @note This should only be used for casting raw values from HCI.
870871
*/
871-
disconnection_reason_t(uint8_t value) : SafeEnum(value)
872+
explicit disconnection_reason_t(uint8_t value) : SafeEnum(value)
872873
{
873874
}
874875
};
876+
#endif // !defined(DOXYGEN_ONLY)
875877

876878
/**
877879
* Privacy Configuration of the peripheral role.

0 commit comments

Comments
 (0)