projects
/
apps
/
native
/
gear-racing-car.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b68d6
)
fixed typos
author
Jeonghoon Park
<jh1979.park@samsung.com>
Thu, 18 Jan 2018 08:08:35 +0000
(17:08 +0900)
committer
Jeonghoon Park
<jh1979.park@samsung.com>
Thu, 18 Jan 2018 08:08:35 +0000
(17:08 +0900)
src/app.c
patch
|
blob
|
history
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;
}