From eecc58fafd2ed807c9f13e7af6549876009675ad Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Thu, 4 Jul 2019 17:08:04 +0200 Subject: [PATCH] Bluetooth: services: Move health thermometer service Move the health thermometer service into the sample folder that demonstrates it. This avoids long build paths Signed-off-by: Joakim Andersson --- samples/bluetooth/peripheral_ht/CMakeLists.txt | 3 --- samples/bluetooth/{gatt => peripheral_ht/src}/hts.c | 0 samples/bluetooth/{gatt => peripheral_ht/src}/hts.h | 0 samples/bluetooth/peripheral_ht/src/main.c | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) rename samples/bluetooth/{gatt => peripheral_ht/src}/hts.c (100%) rename samples/bluetooth/{gatt => peripheral_ht/src}/hts.h (100%) diff --git a/samples/bluetooth/peripheral_ht/CMakeLists.txt b/samples/bluetooth/peripheral_ht/CMakeLists.txt index afaa8213e6c..0d975bb57a2 100644 --- a/samples/bluetooth/peripheral_ht/CMakeLists.txt +++ b/samples/bluetooth/peripheral_ht/CMakeLists.txt @@ -8,7 +8,4 @@ project(peripheral_ht) FILE(GLOB app_sources src/*.c) target_sources(app PRIVATE ${app_sources} - ../gatt/hts.c ) - -zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) diff --git a/samples/bluetooth/gatt/hts.c b/samples/bluetooth/peripheral_ht/src/hts.c similarity index 100% rename from samples/bluetooth/gatt/hts.c rename to samples/bluetooth/peripheral_ht/src/hts.c diff --git a/samples/bluetooth/gatt/hts.h b/samples/bluetooth/peripheral_ht/src/hts.h similarity index 100% rename from samples/bluetooth/gatt/hts.h rename to samples/bluetooth/peripheral_ht/src/hts.h diff --git a/samples/bluetooth/peripheral_ht/src/main.c b/samples/bluetooth/peripheral_ht/src/main.c index c83908bef94..3310bc50547 100644 --- a/samples/bluetooth/peripheral_ht/src/main.c +++ b/samples/bluetooth/peripheral_ht/src/main.c @@ -21,7 +21,7 @@ #include #include -#include +#include "hts.h" struct bt_conn *default_conn;