From 92ae20f0ac7fb45e21ed4c5c99ba3dbc94b47027 Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk <66371704+kkasperczyk-no@users.noreply.github.com> Date: Wed, 14 Jul 2021 16:56:18 +0200 Subject: [PATCH] Fixed CHIP shell NFC commands compilation failure (#8365) 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();