Skip to content
Commit 6aee3048 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Heiko Schocher
Browse files

cmd_i2c: bugfix: add missing brace



The sub-command parser missed a brace, so "return 0;" is always
taken and no error message is diplayed if you say "i2c scan"
instead of "i2c probe", for example.

Proper brace is added. Also, a misleading and unneeded else
is removed.

Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com.it>
parent bfadb17f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment