commit | 0dbfccba3428009b917f3cd63b961aa78f08c5c3 | [log] [tgz] |
---|---|---|
author | Simon Wilson <simonwilson@google.com> | Sat Jan 16 14:08:50 2016 -0800 |
committer | Simon Wilson <simonwilson@google.com> | Sat Jan 16 14:08:53 2016 -0800 |
tree | c93f5789e8ec00ae63cbe1b28201a37965784896 | |
parent | 97375c4cfea4f33b3f1babc1fa394ce7b5f220f8 [diff] |
bmi160: prevent multiple time syncs The active_data_sensor_cnt variable was uninitialised and is needed to make sure that only a single time sync event is scheduled every 100ms. Previously when a fusion algorithm like gravity was started, two time sync events would be scheduled every 100ms, one for each of the two enabled sensors. This was causing unintended wakeups. Change-Id: I81c756ae1a6866d58f6ac769fcc21e567c350f7e