From 2c53303e60f6d355cf3d117dd472c3aedd2e4f21 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 9 Feb 2018 13:24:23 +0200 Subject: tempmodule: these are no longer structs. --- src/tempmodule/main.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tempmodule/main.ino b/src/tempmodule/main.ino index 3f4be39..2cec574 100644 --- a/src/tempmodule/main.ino +++ b/src/tempmodule/main.ino @@ -241,5 +241,5 @@ static int get_temperature(int res) /* Returns the last 0-10 part of the temperature, in 0.1°K. */ static int get_temp_subrange(short a, short b, int res) { - return (res - a.res) * 100 / (b.res - a.res); + return (res - a) * 100 / (b - a); } -- cgit v1.2.3