Skip to content

Commit ff4909f

Browse files
committed
drv/bluetooth_stm32_bluenrg: fix compile error
Fixes #45
1 parent e26c527 commit ff4909f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pbio/drv/bluetooth/bluetooth_stm32_bluenrg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,13 @@ static void handle_event(hci_event_pckt *event) {
514514
pybricks_on_rx(subevt->att_data, subevt->data_length);
515515
}
516516
} else if (subevt->attr_handle == pybricks_char_handle + 2) {
517-
pybricks_notify_en = *(uint16_t *)subevt->att_data;
517+
pybricks_notify_en = subevt->att_data[0];
518518
} else if (subevt->attr_handle == uart_rx_char_handle + 1) {
519519
if (uart_on_rx) {
520520
uart_on_rx(subevt->att_data, subevt->data_length);
521521
}
522522
} else if (subevt->attr_handle == uart_tx_char_handle + 2) {
523-
uart_tx_notify_en = *(uint16_t *)subevt->att_data;
523+
uart_tx_notify_en = subevt->att_data[0];
524524
}
525525
}
526526
break;

0 commit comments

Comments
 (0)