diff --git a/SD_ROOT/wz_mini/lib/libcallback.so b/SD_ROOT/wz_mini/lib/libcallback.so index 6381626..9e82853 100644 Binary files a/SD_ROOT/wz_mini/lib/libcallback.so and b/SD_ROOT/wz_mini/lib/libcallback.so differ diff --git a/file.chk b/file.chk index a9fc7cf..eb60bb3 100644 --- a/file.chk +++ b/file.chk @@ -81,7 +81,7 @@ b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg 4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar 9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so 4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so -395c1f510f1179cc8ab4e8ffe8182c84 SD_ROOT/wz_mini/lib/libcallback.so +d63e45dd1a05a62ad91ef3d70eae44de SD_ROOT/wz_mini/lib/libcallback.so baf8d0b7a28f2fbb49a19ae0980779da SD_ROOT/wz_mini/lib/modules/3.10.14/modules.order 70775da41db88e4450d910b4ee8621c0 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/crypto/md4.ko abbaa461e044b5688814423a087fbc52 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/fs/ext4/ext4.ko diff --git a/src/libcallback_wz_mod/libcallback.so b/src/libcallback_wz_mod/libcallback.so index 6381626..9e82853 100644 Binary files a/src/libcallback_wz_mod/libcallback.so and b/src/libcallback_wz_mod/libcallback.so differ diff --git a/src/libcallback_wz_mod/night_drop.c b/src/libcallback_wz_mod/night_drop.c index f050fc4..ac79ff9 100644 --- a/src/libcallback_wz_mod/night_drop.c +++ b/src/libcallback_wz_mod/night_drop.c @@ -9,6 +9,8 @@ static uint32_t (*real_local_sdk_video_set_fps)(int encChn); int local_sdk_video_set_fps(int encChn) { + fprintf(stderr, "[command] [night_drop.c] local_sdk_video_set_fps called with fps value: %d\n", encChn); + const char *nd_enable="/opt/wz_mini/tmp/.nd"; const char *product_T31="/opt/wz_mini/tmp/.T31"; const char *product_T20="/opt/wz_mini/tmp/.T20"; @@ -28,11 +30,16 @@ int local_sdk_video_set_fps(int encChn) { fprintf(stderr, "[command] [night_drop.c] Calling local_sdk_video_set_fps to: %d\n", encChn); real_local_sdk_video_set_fps(encChn); } - - } + //If nd is disabled, pass all requests along + } else { + printf("[command] [night_drop.c] Night Drop not enabled\n"); + fprintf(stderr, "[command] [night_drop.c] Requested FPS Value: %d\n", encChn); + fprintf(stderr, "[command] [night_drop.c] Calling local_sdk_video_set_fps to: %d\n", encChn); + real_local_sdk_video_set_fps(encChn); + } } -static void __attribute ((constructor)) nigh_drop_init(void) { +static void __attribute ((constructor)) night_drop_init(void) { real_local_sdk_video_set_fps = dlsym(dlopen("/system/lib/liblocalsdk.so", RTLD_LAZY), "local_sdk_video_set_fps"); }