genesys: Don't set powersaving when setting cache expiration time

merge-requests/336/head
Povilas Kanapickas 2020-02-16 10:41:14 +02:00
rodzic 9bb7ed64b6
commit 51b09eec5c
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -5694,9 +5694,7 @@ static void set_option_value(Genesys_Scanner* s, int option, void *val, SANE_Int
case OPT_EXPIRATION_TIME:
if (*reinterpret_cast<SANE_Word*>(val) != s->expiration_time) {
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;
case OPT_CUSTOM_GAMMA: