itg3200: fixed calibration off by one

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2016-02-16 18:00:45 -08:00
parent a9548f3ff4
commit 2695ef3361

View File

@ -86,7 +86,7 @@ Itg3200::calibrate(void)
for(int i = 0; i < reads; i++){
Itg3200::update();
if (i > skip){
if (i >= skip){
for (int j = 0; j < 3; j++){
temp[j] += m_rotation[j];
}