summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVladimir Petrov <vppetrov@mm-sol.com>2012-06-22 13:17:02 +0300
committerDaniel Levin <dendy@ti.com>2012-11-26 18:22:44 +0200
commit4dfd475097b98db1482f765471a50ac65997caff (patch)
treef976d611dc6c43cfd008708342af0809e07caa84 /test
parent28b6046e030068e2f56546697a9d5bc4c1b5fd1c (diff)
downloadhardware_ti_omap4-4dfd475097b98db1482f765471a50ac65997caff.zip
hardware_ti_omap4-4dfd475097b98db1482f765471a50ac65997caff.tar.gz
hardware_ti_omap4-4dfd475097b98db1482f765471a50ac65997caff.tar.bz2
Camera_test: Fix typo in absolute exposure settings
There is a typo in setSingleExpGainPreset(). When in absolute exp. bracketing modes, the address of the abs() math function is used as value to configure the exposure time, instead of the exposure time argument. After applying this patch, the absolute exposure time in streaming shot mode will be set correctly. Change-Id: I244dd6869f2b69bf5d7c087c694001e7b64d032d Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'test')
-rw-r--r--test/CameraHal/camera_test_menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CameraHal/camera_test_menu.cpp b/test/CameraHal/camera_test_menu.cpp
index 1908ae3..ff6ca39 100644
--- a/test/CameraHal/camera_test_menu.cpp
+++ b/test/CameraHal/camera_test_menu.cpp
@@ -2170,7 +2170,7 @@ void setSingleExpGainPreset(ShotParameters &params, int idx, int exp, int gain)
if (PARAM_EXP_BRACKET_VALUE_REL == expBracketing[idx].value_type) {
val.appendFormat("%+d", exp);
} else {
- val.appendFormat("%u", (unsigned int) abs);
+ val.appendFormat("%u", (unsigned int) exp);
}
if (PARAM_EXP_BRACKET_PARAM_PAIR == expBracketing[idx].param_type) {