diff options
author | Constantin Musca <constantin.musca@intel.com> | 2016-01-08 14:31:43 +0200 |
---|---|---|
committer | Bruce Beare <bruce.j.beare@intel.com> | 2016-01-11 16:17:05 -0800 |
commit | 5b95432c01a78c364aa029b05eeddb570d1828f2 (patch) | |
tree | 7923a49594ef219946182ba3983eb4976d9fd84b | |
parent | b7266ac8aa6b0b090620c48dae68148f0f3fdabd (diff) | |
download | intel-5b95432c01a78c364aa029b05eeddb570d1828f2.tar.gz |
light: mraa: missing field 'tv_nsec' initializer
BUG=none
Change-Id: I51593d2b3deaeb05a37494f159ba7247e0cade45
Tracked-On: https://jira01.devtools.intel.com/browse/BP-188
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
-rw-r--r-- | peripheral/light/mraa/lights.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/peripheral/light/mraa/lights.c b/peripheral/light/mraa/lights.c index 00aa31e..339d72b 100644 --- a/peripheral/light/mraa/lights.c +++ b/peripheral/light/mraa/lights.c @@ -121,7 +121,7 @@ close_gpio: */ int64_t get_timestamp_monotonic() { - struct timespec ts = {0}; + struct timespec ts = {0, 0}; if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { return ONE_S_IN_NS * ts.tv_sec + ts.tv_nsec; |