diff --git a/samples/bluetooth/peripheral/src/main.c b/samples/bluetooth/peripheral/src/main.c index 649393af9fa..f83f1de058f 100644 --- a/samples/bluetooth/peripheral/src/main.c +++ b/samples/bluetooth/peripheral/src/main.c @@ -335,7 +335,7 @@ void main(void) * of starting delayed work so we do it here */ while (1) { - k_sleep(MSEC_PER_SEC); + k_sleep(K_SECONDS(1)); /* Current Time Service updates only when time is changed */ cts_notify(); diff --git a/samples/bluetooth/peripheral_csc/src/main.c b/samples/bluetooth/peripheral_csc/src/main.c index fd3d36921a3..4431457aee6 100644 --- a/samples/bluetooth/peripheral_csc/src/main.c +++ b/samples/bluetooth/peripheral_csc/src/main.c @@ -408,7 +408,7 @@ void main(void) bt_conn_cb_register(&conn_callbacks); while (1) { - k_sleep(MSEC_PER_SEC); + k_sleep(K_SECONDS(1)); /* CSC simulation */ if (csc_simulate) { diff --git a/samples/bluetooth/peripheral_esp/src/main.c b/samples/bluetooth/peripheral_esp/src/main.c index b5ab93e4fdb..2aaccbf77ee 100644 --- a/samples/bluetooth/peripheral_esp/src/main.c +++ b/samples/bluetooth/peripheral_esp/src/main.c @@ -432,7 +432,7 @@ void main(void) bt_conn_auth_cb_register(&auth_cb_display); while (1) { - k_sleep(MSEC_PER_SEC); + k_sleep(K_SECONDS(1)); /* Temperature simulation */ if (simulate_temp) { diff --git a/samples/bluetooth/peripheral_hr/src/main.c b/samples/bluetooth/peripheral_hr/src/main.c index 2e38a646492..87faef23cac 100644 --- a/samples/bluetooth/peripheral_hr/src/main.c +++ b/samples/bluetooth/peripheral_hr/src/main.c @@ -127,7 +127,7 @@ void main(void) * of starting delayed work so we do it here */ while (1) { - k_sleep(MSEC_PER_SEC); + k_sleep(K_SECONDS(1)); /* Heartrate measurements simulation */ hrs_notify(); diff --git a/samples/bluetooth/peripheral_ht/src/main.c b/samples/bluetooth/peripheral_ht/src/main.c index 3694e9a8fc5..2d388f5e7e2 100644 --- a/samples/bluetooth/peripheral_ht/src/main.c +++ b/samples/bluetooth/peripheral_ht/src/main.c @@ -120,7 +120,7 @@ void main(void) * of starting delayed work so we do it here */ while (1) { - k_sleep(MSEC_PER_SEC); + k_sleep(K_SECONDS(1)); /* Temperature measurements simulation */ hts_indicate();