From 06543e9899bec5ba75bfd08e2f3f55f0e3919dd2 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 30 Dec 2022 20:23:10 +1100 Subject: [PATCH] Stubs for anc to build with keyboard off --- services/bt_app/app_bt.cpp | 6 ++++++ services/bt_app/app_bt.h | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/services/bt_app/app_bt.cpp b/services/bt_app/app_bt.cpp index 2223d98..d774477 100644 --- a/services/bt_app/app_bt.cpp +++ b/services/bt_app/app_bt.cpp @@ -4840,6 +4840,12 @@ uint32_t app_bt_restore_hid_app_ctx(uint8_t *buf) return offset; } +#else +uint32_t app_bt_restore_hid_app_ctx(uint8_t *buf) +{return 0;} +uint32_t app_bt_save_hid_app_ctx(uint8_t *buf) +{return 0;} + #endif #endif /* ENHANCED_STACK */ diff --git a/services/bt_app/app_bt.h b/services/bt_app/app_bt.h index 8dfb7bf..afbbdac 100644 --- a/services/bt_app/app_bt.h +++ b/services/bt_app/app_bt.h @@ -229,10 +229,8 @@ uint32_t app_bt_restore_spp_app_ctx(uint8_t *buf, uint32_t buf_len, uint32_t app uint32_t app_bt_save_map_app_ctx(btif_remote_device_t *rem_dev, uint8_t *buf, uint32_t buf_len); uint32_t app_bt_restore_map_app_ctx(uint8_t *buf, uint32_t buf_len); #endif -#ifdef BTIF_HID_DEVICE -uint32_t app_bt_save_hid_app_ctx(uint8_t *buf); uint32_t app_bt_restore_hid_app_ctx(uint8_t *buf); -#endif +uint32_t app_bt_save_hid_app_ctx(uint8_t *buf); #endif /* ENHANCED_STACK */ #endif