From efa85d60f9025802b42798ef6625f10159c45b4e Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk Date: Wed, 14 Jul 2021 09:12:20 +0200 Subject: [PATCH] Fixed CHIP shell NFC commands compilation failure 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. --- src/lib/shell/commands/NFC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/shell/commands/NFC.cpp b/src/lib/shell/commands/NFC.cpp index ba101b0863d39c..e83747fea62433 100644 --- a/src/lib/shell/commands/NFC.cpp +++ b/src/lib/shell/commands/NFC.cpp @@ -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();