Skip to content
Commit 738a1517 authored by Nick Ward's avatar Nick Ward Committed by Carles Cufí
Browse files

drivers: gpio: shell: optimise blink command



Use gpio toggle api instead of manually toggling.
Remove redundant text.
Print error and break from blinking if it occurs.
Only print 'how to exit' text if first toggle is successful.

Saves roughly 40 bytes.

Signed-off-by: default avatarNick Ward <nix.ward@gmail.com>
parent 45509fdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment