Skip to content

Commit

Permalink
add ble unpair current interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 committed Jun 21, 2021
1 parent 8d0cf13 commit dda8139
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ __attribute__((weak)) bool bluetooth_is_connected(void) { return true; }
__attribute__((weak)) void bluetooth_unpair_all(void) {}

__attribute__((weak)) void bluetooth_unpair_one(uint8_t device_id) {}
__attribute__((weak)) void bluetooth_unpair_current(void) {}

__attribute__((weak)) void bluetooth_pair(void) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void bluetooth_task(void);
bool bluetooth_is_connected(void);
void bluetooth_unpair_all(void);
void bluetooth_unpair_one(uint8_t device_id);
void bluetooth_unpair_current(void);
void bluetooth_pair(void);
void bluetooth_switch_one(uint8_t device_id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ void bluetooth_unpair_all(void) {
}
state.is_connected = false;
}
void bluetooth_unpair(uint8_t device_id) {
void bluetooth_unpair_current(void) {
uprint("biu ble del current\n");
// stop adv and del one
struct queue_item item;
Expand Down

0 comments on commit dda8139

Please sign in to comment.