diff options
author | 2018-04-27 10:04:26 +0300 | |
---|---|---|
committer | 2018-04-27 10:04:26 +0300 | |
commit | 23d06a17f8a4033be57ca46079e5c3e65fa9e845 (patch) | |
tree | 7bfec5a9deedcc1e7de7c9ecd54ecf36020212c8 /src/tempmodule/temperature.c | |
parent | 884013b71ba9abd9ab0c9d0a8f90a769aff9b6a9 (diff) | |
download | coffeetemp-23d06a17f8a4033be57ca46079e5c3e65fa9e845.tar.gz coffeetemp-23d06a17f8a4033be57ca46079e5c3e65fa9e845.tar.bz2 coffeetemp-23d06a17f8a4033be57ca46079e5c3e65fa9e845.zip |
various minor improvements.
Diffstat (limited to 'src/tempmodule/temperature.c')
-rw-r--r-- | src/tempmodule/temperature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tempmodule/temperature.c b/src/tempmodule/temperature.c index 684f654..c95807b 100644 --- a/src/tempmodule/temperature.c +++ b/src/tempmodule/temperature.c @@ -81,7 +81,7 @@ int get_temperature(int res) } /* Returns the last 0-10 part of the temperature, in 0.1°K. */ -int get_temp_subrange(short a, short b, int res) +int get_temp_subrange(int a, int b, int res) { return (res - a) * 100 / (b - a); } |