]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change open state
authorBastian Dehn <hhaalo@arcor.de>
Sun, 21 Jan 2024 14:12:08 +0000 (15:12 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 21 Jan 2024 14:12:08 +0000 (15:12 +0100)
src/kds_s2000w_net.c

index dac9848778ccc1aae022a40c301691032d0b09cb..2b9f84e4fc3fa3a15d1d97c4f6b2fa5a1bd03fb9 100644 (file)
@@ -48,9 +48,9 @@ SANE_Status _sane_kds_s2000w_net_open(SANE_String_Const devicename,
                return SANE_STATUS_DEVICE_BUSY;
 
        if (state == NOTCONNECTED)
-               return SANE_STATUS_INVAL;
+               return SANE_STATUS_IO_ERROR;
 
-       return SANE_STATUS_UNSUPPORTED;
+       return SANE_STATUS_GOOD;
 }
 
 void _sane_kds_s2000w_net_close(SANE_Handle handle)