summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShobhitAd <adlakhashobhit@gmail.com>2021-01-13 13:42:21 -0500
committerShobhitAd <adlakhashobhit@gmail.com>2021-01-13 13:42:21 -0500
commitc8bc079ef5b426166b94b8f215dfdd12e6eeee50 (patch)
tree3cca1a0ca6bd642bb092cd3b527ceb10a328adf2
parent36f103bb6a0362b63348b1b6c2f9c95a799824e1 (diff)
downloadsdl_core-feature/media_skip_indicators.tar.gz
Address review commentfeature/media_skip_indicators
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/set_media_clock_timer_request.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/set_media_clock_timer_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/set_media_clock_timer_request.cc
index 00a83b1f93..285118749a 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/set_media_clock_timer_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/set_media_clock_timer_request.cc
@@ -163,9 +163,9 @@ bool SetMediaClockRequest::isDataValid(std::string& info) {
mobile_apis::UpdateMode::eType>::EnumToString(update_mode,
&update_mode_name);
info = "Start time must be " +
- std::string((end_time_in_seconds > start_time_in_seconds)
- ? "after"
- : "before") +
+ std::string((update_mode == mobile_apis::UpdateMode::COUNTUP)
+ ? "before"
+ : "after") +
" the end time for update mode " + update_mode_name;
SDL_LOG_INFO("Invalid data: " << info);
return false;