#102 allow setting CapFeederEnabled to false.

This commit is contained in:
Eugene Wang 2018-05-24 05:40:30 -04:00
parent b432ff3126
commit b2af80d985
2 changed files with 5 additions and 9 deletions

View File

@ -2055,15 +2055,11 @@ namespace NTwain
ItemType = ItemType.Bool
};
// we will never set feeder off, only autofeed and autoscan
// but if it is true then enable feeder needs to be set first
if (value == BoolType.True)
using (TWCapability enabled = new TWCapability(CapabilityId.CapFeederEnabled, one))
{
using (TWCapability enabled = new TWCapability(CapabilityId.CapFeederEnabled, one))
{
rc = _source.DGControl.Capability.Set(enabled);
}
rc = _source.DGControl.Capability.Set(enabled);
}
// to really use feeder we must also set autofeed or autoscan, but only
// for one of them since setting autoscan also sets autofeed
if (CapAutoScan.CanSet)

View File

@ -1,6 +1,6 @@
using System.Reflection;
[assembly: AssemblyCopyright("Copyright \x00a9 Yin-Chun Wang 2012-2017")]
[assembly: AssemblyCopyright("Copyright \x00a9 Yin-Chun Wang 2012-2018")]
[assembly: AssemblyCompany("Yin-Chun Wang")]
[assembly: AssemblyVersion(NTwain.VersionInfo.Release)]
@ -23,7 +23,7 @@ namespace NTwain
/// <summary>
/// The build release version number.
/// </summary>
public const string Build = "3.5.0"; // change this for each nuget release
public const string Build = "3.5.2"; // change this for each nuget release
}