projects
/
apps
/
native
/
gear-racing-car.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed typos
[apps/native/gear-racing-car.git]
/
src
/
app.c
diff --git
a/src/app.c
b/src/app.c
index
cec9f78
..
c8f3129
100644
(file)
--- a/
src/app.c
+++ b/
src/app.c
@@
-77,7
+77,7
@@
static int __map_range_val(int d_max, int d_min, int v_max, int v_min, int val)
double slope = 0;
slope = 1.0 * (d_max - d_min) / (v_max - v_min);
- rval = d_min + round(slope * (val - v_min));
+ rval = d_min +
__map_
round(slope * (val - v_min));
return rval;
}