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:
parent
a44f4cf484
commit
7d4682e302
5 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue