diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2020-09-30 16:45:02 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2020-09-30 16:45:02 -0400 |
commit | 7b03c2ec5e28a211bf7359e7700ca68ece3e8c21 (patch) | |
tree | 793f60505a6e3daca2220487edd491de54c6a33e | |
parent | 876856f1f2a6956bb6d14f32a26d484c0fd52499 (diff) | |
download | sdl_core-fix/play_tone_without_tts.tar.gz |
Ignore playTone if provided without TTSChunksfix/play_tone_without_tts
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/alert_request.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/alert_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/alert_request.cc index 55783be4cd..ae94d2f1d4 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/alert_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/alert_request.cc @@ -111,10 +111,11 @@ void AlertRequest::Run() { (*message_)[strings::msg_params][strings::tts_chunks].length(); } - if ((tts_chunks_exists && length_tts_chunks) || - ((*message_)[strings::msg_params].keyExists(strings::play_tone) && - (*message_)[strings::msg_params][strings::play_tone].asBool())) { + if (tts_chunks_exists && length_tts_chunks) { awaiting_tts_speak_response_ = true; + } else if ((*message_)[strings::msg_params].keyExists(strings::play_tone) && + (*message_)[strings::msg_params][strings::play_tone].asBool()) { + set_warning_info("playTone ignored since TTS Chunks were not provided"); } SendAlertRequest(app_id); |