We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
device_is_ready
1 parent cb67276 commit c551005Copy full SHA for c551005
samples/drivers/dali/src/main.c
@@ -22,7 +22,7 @@ int main(void)
22
23
/* get the DALI device */
24
const struct device *dali_dev = DEVICE_DT_GET(DALI_NODE);
25
- if (!dali_dev) {
+ if (!device_is_ready(dali_dev)) {
26
LOG_ERR("failed to get DALI device.");
27
return 0;
28
}
0 commit comments