shell: use public API to check device readiness
Avoid the private API now that there's a public equivalent. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
c2d852a171
commit
63638ceed6
2 changed files with 3 additions and 3 deletions
|
@ -469,7 +469,7 @@ const struct device *shell_device_lookup(size_t idx,
|
|||
const struct device *dev_end = dev + len;
|
||||
|
||||
while (dev < dev_end) {
|
||||
if (z_device_ready(dev)
|
||||
if (device_is_ready(dev)
|
||||
&& (dev->name != NULL)
|
||||
&& (strlen(dev->name) != 0)
|
||||
&& ((prefix == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue