OSDN Git Service

STPK-1429 Minor tweak to compass calibration data save point
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 2 Jul 2014 12:18:11 +0000 (14:18 +0200)
committerGerrit Code Review <gerrit@mcg-psi-gcr1.jf.intel.com>
Thu, 17 Jul 2014 13:20:36 +0000 (06:20 -0700)
commitdbf1cc45025387dd175a44b9df63afff7f33e889
treec1a1134cc6c264e070b490bcaa8940860692c6b9
parentf4a2bd0ab4a5b4e46d09158cce6aaaf8c9d820e1
STPK-1429 Minor tweak to compass calibration data save point

Was being saved each time the magnetometer reference count was
decremented. Doing it when it reaches zero is probably enough.

Issue: STPK-1429

Change-Id: Ia465821cbf1ec22c5645753b6289e368d7ef2bd8
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c