Skip to content
Commit a538dcd8 authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

shell: refactor device_name_get implementation



Several shell modules use cloned code to iterate over all devices and
identify the nth instance that meets some criteria.  The code was
repetitive and included various errors.  Abstract to a helper function
that performs the check consistently.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 219a3ca9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment