<div dir="ltr">Hi,<div><br></div><div>I am detecting the need to reload options when calling sane_control_option an then reloading the options.</div><div>It's weird that it accepts the new configuration. </div><div><br></div><div>Maybe I'm doing something wrong and It's losing other configurations when setting the Color (I suspect it's returning to ADF source).</div><div><br></div><div>Cheers.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex., 2 de dez. de 2022 às 19:42, Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 2, 2022 at 2:28 PM Thiago Milczarek Sayão <<a href="mailto:thiago.sayao@gmail.com" target="_blank">thiago.sayao@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I've downloaded epson drivers here:</div><div><a href="https://support.epson.net/linux/en/epsonscan2.php" target="_blank">https://support.epson.net/linux/en/epsonscan2.php</a><br></div><div><br></div><div>Scanning generally works, but there's one option behaving weird:</div><div><br></div><div>SaneOptionDescriptor {<br>    name='mode', <br>    title='Scan mode', <br>    desc='Selects the scan mode (e.g., lineart, monochrome, or color).',<br>    type=SANE_TYPE_STRING, <br>    unit=SANE_UNIT_NONE, <br>    size=11,<br>    cap=5, <br>    constraintType=SANE_CONSTRAINT_STRING_LIST, list=[Color, Grayscale, Monochrome]<br> }<br></div><div><br></div><div>When I set this option to Color, Grayscale or Monochrome scanning it will return SANE_STATUS_NO_DOCS as if</div><div><br></div><div>SaneOptionDescriptor {<br>    name='source',<br>    title='Scan source',<br>    desc='Selects the scan source (such as a document-feeder).',<br>    type=SANE_TYPE_STRING,<br>    unit=SANE_UNIT_NONE,<br>    size=8,<br>    cap=5,<br>    constraintType=SANE_CONSTRAINT_STRING_LIST, list=[ADF, Flatbed]<br>}<br></div><div><br></div><div>was set to ADF. But I'm always sure to set to Flatbed.</div><div><br></div><br></div></blockquote><div>Does it make a difference if you change the order of the option sets?</div><div>Some options (typically mode and source) request a reload of options as other options can be affected.</div><div><br></div><div>Cheers,</div><div>Ralph <br></div></div></div>
</blockquote></div>