Skip to content
Commit f14c061d authored by Witold Lukasik's avatar Witold Lukasik Committed by Carles Cufí
Browse files

shell: fix SHELL_SUBCMD_COND_ADD with NULL as _handler parameter



In dummy_subcmd_##syntax statement, syntax keyword
should be replaced with _syntax, that is the argument name.

In dummy_##syntax##_handler There are two problems:
 - wrong syntax keyword
 - _handler is an argument

So if NULL is passed as an argument to _handler, and the syntax is abcd,
there is: dummy_##abcd##NULL, what causes a build error.

Signed-off-by: default avatarWitold Lukasik <witold.lukasik@nordicsemi.no>
parent aa3e79a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment