Skip to content

@hci.h use of magic-number in bluetooth addr struct (Missing define in @bluetooth.h) #9591

@TTJO

Description

@TTJO

In bluetooth/hci.h the bluetooth address type is declared as

typedef struct {
	u8_t  val[6];
} bt_addr_t;

Instead of using magic number '6' this should be declared as a define in bluetooth.h:
#define BT_ADDR_LEN (6)

Metadata

Metadata

Labels

area: BluetoothbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions