[FL-2203] Fix CLI RPC stall (#961)

* [FL-2203] Fix CLI RPC stall
This commit is contained in:
Albert Kharisov 2022-01-14 18:09:43 +04:00 committed by GitHub
parent 17d0d19348
commit 8f8aba2a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,9 @@ void rpc_cli_command_start_session(Cli* cli, string_t args, void* context) {
} }
if(size_received) { if(size_received) {
furi_assert( size_t fed_bytes = rpc_session_feed(rpc_session, buffer, size_received, 3000);
rpc_session_feed(rpc_session, buffer, size_received, 3000) == size_received); (void)fed_bytes;
furi_assert(fed_bytes == size_received);
} }
} }