l3gd20: refactor

This commit is contained in:
Karan Misra 2014-01-09 00:55:43 +05:30
parent ec8a223b13
commit 2218fba756
1 changed files with 1 additions and 3 deletions

View File

@ -254,9 +254,7 @@ func (d *L3GD20) readOrientationDelta(a *axis) (value float64, err error) {
}
value = float64(int16(h)<<8 | int16(l))
sensitivity := d.Range.sensitivity
value *= sensitivity
value *= d.Range.sensitivity
return
}