From 2218fba7565921cd38b6bcd5db91f2e2c43f92f0 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Thu, 9 Jan 2014 00:55:43 +0530 Subject: [PATCH] l3gd20: refactor --- sensor/l3gd20/l3gd20.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sensor/l3gd20/l3gd20.go b/sensor/l3gd20/l3gd20.go index 0ce1abd..ed95084 100644 --- a/sensor/l3gd20/l3gd20.go +++ b/sensor/l3gd20/l3gd20.go @@ -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 }