mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +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))
|
||||
|
||||
sensitivity := d.Range.sensitivity
|
||||
value *= sensitivity
|
||||
value *= d.Range.sensitivity
|
||||
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user