Jan Hauffa
|
96c6ee1dae
|
Cleaned up firmware state handling.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
c1f22ef9a9
|
Clean up Asic_SetCalibrate, make Asic_SetCalibrate and Asic_SetWindow more similar.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
3cd05dacca
|
Refactoring the smaller high level ASIC functions.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
de5b647c4a
|
Refactored medium level ASIC functions.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
693da258ce
|
Move some definitions from mustek_usb2_asic.h to more appropriate headers.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
2776b336d1
|
Simplify LLFSetMotorCurrentAndPhase.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
dea59ee824
|
Refactored all low-level motor functions except LLFSetMotorCurrentAndPhase.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
e47fee8dcc
|
Simplified computation of motor current, removed a redundant register assignment.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
5688a78ace
|
Simplify low-level ASIC functions, add missing error checks.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
1d8a008856
|
Simplify SetRWSize, use symbolic constants for registers whenever possible.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
794b15ff9e
|
Simplyfied Asic_SetShadingTable.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
6d5a5123ea
|
Remove whitespace at the end of debug output lines.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
d418094b64
|
Some motor table related fixes.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
3d1b409a1b
|
Fix a few comments.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
88cac5b4ad
|
Begin simplifying LLFSetMotorCurrentAndPhase, ensure all fields of LLF_MOTOR_CURRENT_AND_PHASE are initialized.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
fb55a92604
|
Remove even more unused code from mustek_usb2_asic.c.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
77ea9b01c3
|
Improved readability of functions in mustek_usb2_high.c.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
ca1e0db16f
|
Remove unused code and fix indentation in mustek_usb2_high.c.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
3f7cf8a65f
|
Remove DISABLE bit flag constants.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
073fe96611
|
LLF_MOTOR_CURRENT_AND_PHASE: only first byte of arrays MotorCurrentTableA/B is ever used
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
4b242a7139
|
Remove unused parameter isOrderInvert from MustScanner_GetMono*Line.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
78863d13de
|
Remove redundant typecasts.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
cf6c88bfd1
|
Try to reduce differences between mustek_usb2_reflective.c and mustek_usb2_transparent.c, part 1.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
972fc54793
|
Move some code that was duplicated in mustek_usb2_transparent.c and mustek_usb2_reflective.c to mustek_usb2_high.c.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
db37c13bb3
|
Remove information-less comments, break long lines, fix indentation.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
fa8101e05e
|
Remove unused enum FS_NULL.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
ccde6b0635
|
Remove unused fields of struct GETPARAMETERS.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
2be2be76ae
|
Unified style of struct and enum definitions.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
ce6d7010d3
|
Pixel flavor is never PF_WhiteIs0, so the associated code can be removed.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
76a23c3bc4
|
Remove dead "auto level" code, sanitize key handling.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
e7c44fe679
|
Cleanup of Asic_SetWindow
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
16485d47da
|
Optimize motor table calculation.
|
2015-11-08 16:54:41 -05:00 |
Jan Hauffa
|
8821c2882f
|
First attempt at cleaning up mustek_usb2_asic.c.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
30087b3f43
|
Avoid some unorthodox language constructs.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
030c7fa122
|
Remove redundant code from mustek_usb2_high.c.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
a554d61c17
|
Remove redundant code from mustek_usb2_asic.c, add a missing error check.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
a49bff1a60
|
Simplify DRAM test.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
bc9252c094
|
Remove bogus automatic warmup and power saving functions.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
0f63d16121
|
Remove redundant code from mustek_usb2.c.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
694a69dcab
|
Remove unused definitions from mustek_usb2.h.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
21be236e84
|
Remove unused definitions from mustek_usb2_asic.h.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
2404326dde
|
Remove unused definitions from mustek_usb2_high.h and ensure that the remaining ones are used consistently.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
d1851a6512
|
Remove some particularly pointless comments, reduce size of block comments.
|
2015-11-08 16:54:40 -05:00 |
Jan Hauffa
|
047631050c
|
Remove pointless indirection.
|
2015-11-08 16:54:39 -05:00 |
Jan Hauffa
|
dedf0ac30d
|
Remove unused global variable g_pDeviceFile and associated logic.
|
2015-11-08 16:54:39 -05:00 |
m. allan noah
|
3b73e1e8a3
|
fujitsu backend v128
do not ask fi-4340 for serial number
|
2015-11-08 13:12:12 -05:00 |
Thomas Klausner
|
72ecee97ce
|
Add DragonFly BSD support (fixes 315205)
|
2015-11-08 19:00:32 +09:00 |
Thomas Klausner
|
a4cc05f677
|
Add DragonFly BSD support to sane-find-scanner (fixes 315206)
|
2015-11-08 18:56:49 +09:00 |
Olaf Meeuwissen
|
1baab222e4
|
Add missing include (fixes 315207)
Both Linux and NetBSD mention this header for use of setsocketopt().
DragonFly BSD needs it for the SOL_SOCKET symbol.
|
2015-11-08 18:49:58 +09:00 |
Olaf Meeuwissen
|
b0a99cb489
|
Fix non-portable endian.h include issue (315209)
|
2015-11-08 18:36:57 +09:00 |