summaryrefslogtreecommitdiffstats
path: root/base.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-29 04:50:52 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-29 04:50:52 +0200
commitab46db4c388d126095e8e4d8fc3d7aa191a3d649 (patch)
tree0e1e7ba97bae7c49849e76c44e4cfe2576807955 /base.c
parentc177a207d4c1a02d9093b03fdd64533d2dbfa9b6 (diff)
downloadipecamera-ab46db4c388d126095e8e4d8fc3d7aa191a3d649.tar.gz
ipecamera-ab46db4c388d126095e8e4d8fc3d7aa191a3d649.tar.bz2
ipecamera-ab46db4c388d126095e8e4d8fc3d7aa191a3d649.tar.xz
ipecamera-ab46db4c388d126095e8e4d8fc3d7aa191a3d649.zip
Added a small grabbing example
Diffstat (limited to 'base.c')
-rw-r--r--base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base.c b/base.c
index 29363c1..6a24bda 100644
--- a/base.c
+++ b/base.c
@@ -179,7 +179,7 @@ int ipecamera_set_buffer_size(ipecamera_t *ctx, int size) {
return PCILIB_ERROR_INVALID_REQUEST;
}
- if (((size^(size-1)) < size) < size) {
+ if ((size^(size-1)) < size) {
pcilib_error("The buffer size is not power of 2");
}