diff options
author | Constantin Musca <constantin.musca@intel.com> | 2016-01-14 02:05:14 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-14 02:05:14 +0000 |
commit | 3b6ff6d1c9244f831e9e1fd50623e4a87e215243 (patch) | |
tree | a81a3ce5abdf1048ab3dfcffec6f6c4aaa390aee | |
parent | 5d9240c557a4fe87c60e96b4297d1d242890d8a8 (diff) | |
parent | 5b95432c01a78c364aa029b05eeddb570d1828f2 (diff) | |
download | intel-3b6ff6d1c9244f831e9e1fd50623e4a87e215243.tar.gz |
light: mraa: missing field \'tv_nsec\' initializer
am: 5b95432c01
* commit '5b95432c01a78c364aa029b05eeddb570d1828f2':
light: mraa: missing field 'tv_nsec' initializer
-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; |