summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sensors/gyroscope/itg3200.vala2
1 files changed, 1 insertions, 1 deletions
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);