summaryrefslogtreecommitdiff
path: root/samples/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2016-11-13 19:18:39 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2016-11-18 07:47:50 +0200
commit2469bd6f8740e59db2b352fe16c328b6e844b3f8 (patch)
tree8e0b90d90a9a386ff668b8119b5479c383eaaa9b /samples/bluetooth
parent82d4c3a68b6e03274d405179803af2876daa0d92 (diff)
Bluetooth: Use convenience macros for timeout durations
Using the K_* macros makes it easier to read what exactly the various timeouts are. Change-Id: Ia405d3760b8e600af7e33a7221ef6ec717708973 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'samples/bluetooth')
-rw-r--r--samples/bluetooth/eddystone/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bluetooth/eddystone/src/main.c b/samples/bluetooth/eddystone/src/main.c
index 892d689af..ba036854a 100644
--- a/samples/bluetooth/eddystone/src/main.c
+++ b/samples/bluetooth/eddystone/src/main.c
@@ -37,7 +37,7 @@
#define EDS_VERSION 0x00
#define EDS_URL_READ_OFFSET 2
#define EDS_URL_WRITE_OFFSET 4
-#define EDS_IDLE_TIMEOUT (30 * MSEC_PER_SEC)
+#define EDS_IDLE_TIMEOUT K_SECONDS(30)
/* Idle timer */
struct k_delayed_work idle_work;