From 797dd747d118bdfb374d220017b035382c4ec3c7 Mon Sep 17 00:00:00 2001 From: Callum Date: Wed, 30 Oct 2013 02:29:56 +0800 Subject: [PATCH] Update dilatometer.c --- server/sensors/dilatometer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sensors/dilatometer.c b/server/sensors/dilatometer.c index 3b05c5f..f197941 100644 --- a/server/sensors/dilatometer.c +++ b/server/sensors/dilatometer.c @@ -230,7 +230,7 @@ bool Dilatometer_GetExpansion( int id, double * value, int samples) if( lastPosition > 0) { // Find the rate of expansion and convert to mm. Will give a negative result for compression. - *value = (average - lastPosition) * SCALE; + *value = (average - lastPosition) * SCALE *2; lastPosition = average; // Current position now becomes the last position } return result; -- 2.20.1