Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Kharisov <albkharisov@gmail.com>2022-01-14 17:09:43 +0300
committerGitHub <noreply@github.com>2022-01-14 17:09:43 +0300
commit8f8aba2a346e6d27f41fe5774d65c097a5e2ad85 (patch)
tree6f4ad77e910c5a80f6061bf9b9bbf3f1868f5cf9
parent17d0d1934876852813d359b6d328c904bff113a5 (diff)
[FL-2203] Fix CLI RPC stall (#961)
* [FL-2203] Fix CLI RPC stall
-rw-r--r--applications/rpc/rpc_cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/applications/rpc/rpc_cli.c b/applications/rpc/rpc_cli.c
index 2aa3fa5f..59f9458f 100644
--- a/applications/rpc/rpc_cli.c
+++ b/applications/rpc/rpc_cli.c
@@ -50,8 +50,9 @@ void rpc_cli_command_start_session(Cli* cli, string_t args, void* context) {
}
if(size_received) {
- furi_assert(
- rpc_session_feed(rpc_session, buffer, size_received, 3000) == size_received);
+ size_t fed_bytes = rpc_session_feed(rpc_session, buffer, size_received, 3000);
+ (void)fed_bytes;
+ furi_assert(fed_bytes == size_received);
}
}