mirror of
https://github.com/kidoman/embd
synced 2024-12-22 12:50:19 +01:00
l3gd20: refactor
This commit is contained in:
parent
ec8a223b13
commit
2218fba756
@ -254,9 +254,7 @@ func (d *L3GD20) readOrientationDelta(a *axis) (value float64, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
value = float64(int16(h)<<8 | int16(l))
|
value = float64(int16(h)<<8 | int16(l))
|
||||||
|
value *= d.Range.sensitivity
|
||||||
sensitivity := d.Range.sensitivity
|
|
||||||
value *= sensitivity
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user