From 94b29639d801e84a270a7f97a55d6233cac83909 Mon Sep 17 00:00:00 2001 From: Callum Date: Fri, 1 Nov 2013 06:33:07 +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 8d04fb5..60532a2 100644 --- a/server/sensors/dilatometer.c +++ b/server/sensors/dilatometer.c @@ -263,8 +263,8 @@ bool Dilatometer_GetExpansion( int id, double * value, int samples) { // Find the rate of expansion and convert to mm. Will give a negative result for compression. *value = (average - lastPosition) * SCALE *2; - lastPosition = average; // Current position now becomes the last position } + lastPosition = average; // Current position now becomes the last position return result; default: return false; } -- 2.20.1