We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26c527 commit ff4909fCopy full SHA for ff4909f
lib/pbio/drv/bluetooth/bluetooth_stm32_bluenrg.c
@@ -514,13 +514,13 @@ static void handle_event(hci_event_pckt *event) {
514
pybricks_on_rx(subevt->att_data, subevt->data_length);
515
}
516
} else if (subevt->attr_handle == pybricks_char_handle + 2) {
517
- pybricks_notify_en = *(uint16_t *)subevt->att_data;
+ pybricks_notify_en = subevt->att_data[0];
518
} else if (subevt->attr_handle == uart_rx_char_handle + 1) {
519
if (uart_on_rx) {
520
uart_on_rx(subevt->att_data, subevt->data_length);
521
522
} else if (subevt->attr_handle == uart_tx_char_handle + 2) {
523
- uart_tx_notify_en = *(uint16_t *)subevt->att_data;
+ uart_tx_notify_en = subevt->att_data[0];
524
525
526
break;
0 commit comments