Skip to content

Commit b75830a

Browse files
author
Sven Hädrich
committed
Use device_is_ready
1 parent 43613e7 commit b75830a

File tree

1 file changed

+1
-1
lines changed
  • samples/drivers/dali/src

1 file changed

+1
-1
lines changed

samples/drivers/dali/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main(void)
2222

2323
/* get the DALI device */
2424
const struct device *dali_dev = DEVICE_DT_GET(DALI_NODE);
25-
if (!dali_dev) {
25+
if (!device_is_ready(dali_dev)) {
2626
LOG_ERR("failed to get DALI device.");
2727
return 0;
2828
}

0 commit comments

Comments
 (0)