Bluetooth: samples: Fix timeout passed to k_sleep()

Use the appropriate K_SECONDS() macro to pass a timeout to k_sleep().

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2020-04-01 15:59:41 +03:00 committed by Johan Hedberg
commit 7d4682e302
5 changed files with 5 additions and 5 deletions

View file

@ -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();

View file

@ -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) {

View file

@ -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) {

View file

@ -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();

View file

@ -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();