Skip to content

Commit

Permalink
samples/drivers/led_apa102c_bitbang: Wrap sleep time value in K_MSEC()
Browse files Browse the repository at this point in the history
Align the parameter passed to `k_sleep` with the recent changes done
to timeout API.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and galak committed Apr 2, 2020
1 parent 8214f26 commit f57ec57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/drivers/led_apa102c_bitbang/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <device.h>
#include <drivers/gpio.h>
/* in millisecond */
#define SLEEPTIME 250
#define SLEEPTIME K_MSEC(250)

#define GPIO_DATA_PIN 16
#define GPIO_CLK_PIN 19
Expand Down

0 comments on commit f57ec57

Please sign in to comment.