diff options
author | 2018-02-09 13:24:23 +0200 | |
---|---|---|
committer | 2018-02-09 13:24:23 +0200 | |
commit | 2c53303e60f6d355cf3d117dd472c3aedd2e4f21 (patch) | |
tree | 19fa0bdabc19f8350da62fac623f8c5a6c4866c0 /src | |
parent | a1b5b842c0e885a5b5103458bcc7de82030eaca9 (diff) | |
download | coffeetemp-2c53303e60f6d355cf3d117dd472c3aedd2e4f21.tar.gz coffeetemp-2c53303e60f6d355cf3d117dd472c3aedd2e4f21.tar.bz2 coffeetemp-2c53303e60f6d355cf3d117dd472c3aedd2e4f21.zip |
tempmodule: these are no longer structs.
Diffstat (limited to 'src')
-rw-r--r-- | src/tempmodule/main.ino | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |