Skip to content

Commit f8067fa

Browse files
committed
subsys: nfc: add explicit cast in LE OOB record encoder for LE Role enum
On LLVM toolchain, the lack of cast produces an error of incompatible pointer types. Ref. NCSDK-35444 Signed-off-by: Michał Grochala <michal.grochala@nordicsemi.no>
1 parent 5cea0c5 commit f8067fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subsys/nfc/ndef/le_oob_rec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static int le_role_encode(enum nfc_ndef_le_oob_rec_le_role le_role, uint8_t **bu
7575

7676
le_role_ad.type = BT_DATA_LE_ROLE;
7777
le_role_ad.data_len = LE_ROLE_PAYLOAD_SIZE;
78-
le_role_ad.data = &le_role;
78+
le_role_ad.data = (const uint8_t *) &le_role;
7979

8080
err = bt_data_encode(&le_role_ad, buff, size);
8181
if (err) {

0 commit comments

Comments
 (0)