1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 04:40:04 +01:00

l3gd20: refactor

This commit is contained in:
Karan Misra 2014-01-09 00:55:43 +05:30
parent ec8a223b13
commit 2218fba756

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
}