diff options
author | Andriy Byzhynar <AByzhynar@luxoft.com> | 2018-03-07 11:21:28 +0200 |
---|---|---|
committer | Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> | 2018-06-26 12:01:46 +0300 |
commit | 0cacf13d7df8aa08fa312612f6f3d81e970eb6bf (patch) | |
tree | 65c238bbd804e7f7e8617f1dcbef74ea638cbd1e /src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands | |
parent | 57aa1c99210a39546106d02a26be82eeb2a7800f (diff) | |
download | sdl_core-0cacf13d7df8aa08fa312612f6f3d81e970eb6bf.tar.gz |
Fix SDL behavior when resource is unsupported
- Fixed response handling when required resource is unsupported
- Fixed get_system_capabilities request
- FIxed typo in Mobile & HMI APIs (there was duplicated value for
different entities)
Fix OnRCStatus notification
Fix comments after review
Conflicts:
src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/resource_allocation_manager_impl.h
src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/resource_allocation_manager_impl.cc
src/components/interfaces/HMI_API.xml
src/components/interfaces/MOBILE_API.xml
Diffstat (limited to 'src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands')
-rw-r--r-- | src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/rc_command_request.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/rc_command_request.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/rc_command_request.cc index fb9ade462b..e17ad50233 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/rc_command_request.cc +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/rc_command_request.cc @@ -193,11 +193,11 @@ bool RCCommandRequest::AcquireResources() { void RCCommandRequest::on_event(const app_mngr::event_engine::Event& event) { LOG4CXX_AUTO_TRACE(logger_); - const std::string module_type = ModuleType(); - SetResourceState(module_type, ResourceState::FREE); - if (event.id() == hmi_apis::FunctionID::RC_GetInteriorVehicleDataConsent) { ProcessAccessResponse(event); + } else { + const std::string module_type = ModuleType(); + SetResourceState(module_type, ResourceState::FREE); } } |