From 93a10edb6fef5d127d6395d0af5e238c26a2f2ca Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 15 Oct 2012 00:36:25 +0200 Subject: ITG3200: make scale factor constant --- sensors/gyroscope/itg3200.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sensors/gyroscope/itg3200.vala') diff --git a/sensors/gyroscope/itg3200.vala b/sensors/gyroscope/itg3200.vala index ac3e2f0..9c33463 100644 --- a/sensors/gyroscope/itg3200.vala +++ b/sensors/gyroscope/itg3200.vala @@ -17,7 +17,7 @@ public class ITG3200 : I2CDevice, Gyroscope { public int[] rate { get; set; } /* ITG3200 14.375 LSBs per °/sec in radians */ - private static double scale_factor = (1.0 / 14.375) * (180.0 / Math.PI); + private static const double scale_factor = (1.0 / 14.375) * (180.0 / Math.PI); public ITG3200(uint8 dev, uint8 addr = 0x68) throws I2CError { setup(dev, addr); -- cgit v1.2.3