Skip to content

Commit

Permalink
Fixed CHIP shell NFC commands compilation failure (#8365)
Browse files Browse the repository at this point in the history
The CHIP shell command handlers API changed and methods should
return CHIP_ERROR instead of int. NFC commands file was not aligned
and compilation for it fails.

Changed NFCHandler to return CHIP_ERROR instead of int.
  • Loading branch information
kkasperczyk-no authored and pull[bot] committed Aug 6, 2021
1 parent 2ce3c86 commit 59fbfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/shell/commands/NFC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using chip::DeviceLayer::ConnectivityMgr;
namespace chip {
namespace Shell {

static int NFCHandler(int argc, char ** argv)
static CHIP_ERROR NFCHandler(int argc, char ** argv)
{
CHIP_ERROR error = CHIP_NO_ERROR;
streamer_t * sout = streamer_get();
Expand Down

0 comments on commit 59fbfa0

Please sign in to comment.