Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0910b50 authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify stack/include/::BT_DEVICE_TYPE_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I58b0524279c97c98db08d299b41d6d9bf3fe7a83
parent a7d078bd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -801,9 +801,11 @@ struct tBLE_BD_ADDR {

/* Device Types
 */
#define BT_DEVICE_TYPE_BREDR 0x01
#define BT_DEVICE_TYPE_BLE 0x02
#define BT_DEVICE_TYPE_DUMO 0x03
enum : uint8_t {
  BT_DEVICE_TYPE_BREDR = (1 << 0),
  BT_DEVICE_TYPE_BLE = (1 << 1),
  BT_DEVICE_TYPE_DUMO = BT_DEVICE_TYPE_BREDR | BT_DEVICE_TYPE_BLE,
};
typedef uint8_t tBT_DEVICE_TYPE;
#ifdef __cplusplus
inline std::string DeviceTypeText(tBT_DEVICE_TYPE type) {