Let timedate1 to decide on setting time in NTP mode
In NTP mode, let timedate1 to set BMC time, for now, it results in
error.
Change-Id: I2d78cdcfe6868642f43198dd932b20b13fd8523d
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/epoch_base.cpp b/epoch_base.cpp
index 09337de..dc21c67 100644
--- a/epoch_base.cpp
+++ b/epoch_base.cpp
@@ -47,7 +47,11 @@
method.append(static_cast<int64_t>(usec.count()),
false, // relative
false); // user_interaction
- bus.call_noreply(method);
+ auto reply = bus.call(method);
+ if (reply.is_method_error())
+ {
+ log<level::ERR>("Error in setting system time");
+ }
}
microseconds EpochBase::getTime() const