Skip to content

Commit

Permalink
API typo: diconnection -> disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed May 13, 2024
1 parent 09af210 commit c9688f2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/bluepad32/bt/uni_bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ static void on_hci_disconnection_complete(uint16_t channel, const uint8_t* packe
d = NULL;

if (IS_ENABLED(UNI_ENABLE_BLE) && type == GAP_CONNECTION_LE)
uni_bt_le_on_hci_diconnection_complete(channel, packet, size);
uni_bt_le_on_hci_disconnection_complete(channel, packet, size);
else if (IS_ENABLED(UNI_ENABLE_BREDR) && type == GAP_CONNECTION_ACL)
uni_bt_bredr_on_hci_diconnection_complete(channel, packet, size);
uni_bt_bredr_on_hci_disconnection_complete(channel, packet, size);
else
loge("on_hci_disconnection_complete: Unknown GAP connection type: %d\n", type);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/bluepad32/bt/uni_bt_bredr.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ void uni_bt_bredr_on_hci_connection_complete(uint16_t channel, const uint8_t* pa
#endif
}

void uni_bt_bredr_on_hci_diconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size) {
void uni_bt_bredr_on_hci_disconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size) {
ARG_UNUSED(channel);
ARG_UNUSED(packet);
ARG_UNUSED(size);
Expand Down
2 changes: 1 addition & 1 deletion src/components/bluepad32/bt/uni_bt_le.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ void uni_bt_le_on_gap_event_advertising_report(const uint8_t* packet, uint16_t s
hog_connect(addr, addr_type);
}

void uni_bt_le_on_hci_diconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size) {
void uni_bt_le_on_hci_disconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size) {
ARG_UNUSED(channel);
ARG_UNUSED(packet);
ARG_UNUSED(size);
Expand Down
2 changes: 1 addition & 1 deletion src/components/bluepad32/include/bt/uni_bt_bredr.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void uni_bt_bredr_on_l2cap_data_packet(uint16_t channel, const uint8_t* packet,
void uni_bt_bredr_on_gap_inquiry_result(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_connection_request(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_connection_complete(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_diconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_disconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_pin_code_request(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_bredr_on_hci_remote_name_request_complete(uint16_t channel, const uint8_t* packet, uint16_t size);

Expand Down
2 changes: 1 addition & 1 deletion src/components/bluepad32/include/bt/uni_bt_le.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern "C" {
void uni_bt_le_on_hci_event_le_meta(const uint8_t* packet, uint16_t size);
void uni_bt_le_on_hci_event_encryption_change(const uint8_t* packet, uint16_t size);
void uni_bt_le_on_gap_event_advertising_report(const uint8_t* packet, uint16_t size);
void uni_bt_le_on_hci_diconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size);
void uni_bt_le_on_hci_disconnection_complete(uint16_t channel, const uint8_t* packet, uint16_t size);

void uni_bt_le_scan_start(void);
void uni_bt_le_scan_stop(void);
Expand Down

0 comments on commit c9688f2

Please sign in to comment.