kopia lustrzana https://gitlab.com/sane-project/backends
genesys: avoid infinite loop
The stray semicolon prevents executing the loop which could reset the REG41_FEBUSY bit.merge-requests/1/head
rodzic
575f40a079
commit
b53a58c4b5
|
@ -633,7 +633,7 @@ gl846_set_adi_fe (Genesys_Device * dev, uint8_t set)
|
|||
|
||||
/* wait for FE to be ready */
|
||||
status = sanei_genesys_get_status (dev, &val8);
|
||||
while (val8 & REG41_FEBUSY);
|
||||
while (val8 & REG41_FEBUSY)
|
||||
{
|
||||
usleep (10000);
|
||||
status = sanei_genesys_get_status (dev, &val8);
|
||||
|
|
Ładowanie…
Reference in New Issue