Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
libfprint
libfprint
Commits
f498fcd1
Commit
f498fcd1
authored
Nov 04, 2007
by
Daniel Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix img_capture_continuous build
Also enable it in the default development build
parent
f733ddcc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
autogen.sh
autogen.sh
+1
-1
examples/img_capture_continuous.c
examples/img_capture_continuous.c
+5
-8
libfprint/drivers/uru4000.c
libfprint/drivers/uru4000.c
+1
-1
No files found.
autogen.sh
View file @
f498fcd1
...
...
@@ -5,4 +5,4 @@ autoheader || exit 1
autoconf
||
exit
1
automake
-a
-c
||
exit
1
./configure
--enable-maintainer-mode
--enable-examples-build
\
--enable-debug-log
$*
--enable-x11-examples-build
--enable-debug-log
$*
examples/img_capture_continuous.c
View file @
f498fcd1
...
...
@@ -140,7 +140,6 @@ int main(void)
struct
fp_dscv_dev
*
ddev
;
struct
fp_dscv_dev
**
discovered_devs
;
struct
fp_dev
*
dev
;
struct
fp_img_dev
*
imgdev
;
int
img_width
;
int
img_height
;
int
standardize
=
0
;
...
...
@@ -170,15 +169,13 @@ int main(void)
exit
(
1
);
}
imgdev
=
fp_dev_to_img_dev
(
dev
);
if
(
!
imgdev
)
{
fprintf
(
stderr
,
"could not get image dev, is this an imaging "
"device?
\n
"
);
if
(
!
fp_dev_supports_imaging
(
dev
))
{
fprintf
(
stderr
,
"this device does not have imaging capabilities.
\n
"
);
goto
out
;
}
img_width
=
fp_
img
dev_get_img_width
(
img
dev
);
img_height
=
fp_
img
dev_get_img_height
(
img
dev
);
img_width
=
fp_dev_get_img_width
(
dev
);
img_height
=
fp_dev_get_img_height
(
dev
);
framebuffer
=
malloc
(
img_width
*
img_height
*
2
);
if
(
!
framebuffer
)
goto
out
;
...
...
@@ -211,7 +208,7 @@ int main(void)
while
(
1
)
{
/* event loop */
struct
fp_img
*
img
;
r
=
fp_
img
dev_capture
(
img
dev
,
1
,
&
img
);
r
=
fp_dev
_img
_capture
(
dev
,
1
,
&
img
);
if
(
r
)
{
fprintf
(
stderr
,
"image capture failed, code %d
\n
"
,
r
);
goto
out
;
...
...
libfprint/drivers/uru4000.c
View file @
f498fcd1
...
...
@@ -440,7 +440,7 @@ retry:
return
-
EIO
;
}
r
=
get_irq_with_type
(
dev
,
IRQDATA_SCANPWR_ON
,
4
00
);
r
=
get_irq_with_type
(
dev
,
IRQDATA_SCANPWR_ON
,
3
00
);
if
(
r
==
GET_IRQ_OVERFLOW
)
{
goto
retry
;
}
else
if
(
r
==
-
ETIMEDOUT
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment