From c8bc079ef5b426166b94b8f215dfdd12e6eeee50 Mon Sep 17 00:00:00 2001 From: ShobhitAd Date: Wed, 13 Jan 2021 13:42:21 -0500 Subject: Address review comment --- .../src/commands/mobile/set_media_clock_timer_request.cc | 6 +++--- 1 file 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; -- cgit v1.2.1