missing method def updates

This commit is contained in:
Morgan 'ARR\!' Allen 2024-12-01 22:58:29 -08:00
parent d51d3633f2
commit b3e1c7b714
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
set(REQUIRES "")
set(SRCS "")
set(REQUIRES bt)
set(SRCS src/baros_ble.c)
idf_component_register(
SRCS ${SRCS}

View file

@ -24,8 +24,6 @@ typedef struct {
baros_role_t role;
} baros_ble_cfg_t;
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
ESP_EVENT_DECLARE_BASE(EVENT_BAROS_BLE);
typedef enum {
@ -33,5 +31,8 @@ typedef enum {
BAROS_BLE_CONNECT,
} baros_ble_event_t;
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
int baros_ble_scan_start();
int baros_ble_scan_stop();
#endif

View file

@ -189,7 +189,7 @@ static void ble_advertise(void) {
}
}
int ble_scan_start() {
int baros_ble_scan_start() {
uint8_t addr_type;
struct ble_gap_disc_params disc_params = {
.filter_duplicates = 1,
@ -207,7 +207,7 @@ int ble_scan_start() {
return 0;
}
int ble_scan_stop() {
int baros_ble_scan_stop() {
return ble_gap_disc_cancel();
}