kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Don't set powersaving when setting cache expiration time
rodzic
9bb7ed64b6
commit
51b09eec5c
|
@ -5694,8 +5694,6 @@ static void set_option_value(Genesys_Scanner* s, int option, void *val, SANE_Int
|
||||||
case OPT_EXPIRATION_TIME:
|
case OPT_EXPIRATION_TIME:
|
||||||
if (*reinterpret_cast<SANE_Word*>(val) != s->expiration_time) {
|
if (*reinterpret_cast<SANE_Word*>(val) != s->expiration_time) {
|
||||||
s->expiration_time = *reinterpret_cast<SANE_Word*>(val);
|
s->expiration_time = *reinterpret_cast<SANE_Word*>(val);
|
||||||
// BUG: this is most likely not intended behavior, found out during refactor
|
|
||||||
s->dev->cmd_set->set_powersaving(s->dev, s->expiration_time);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue