解决HGScannerlib在mips上的编译问题
This commit is contained in:
parent
cda40fccd2
commit
cbbe1bb98e
|
@ -946,7 +946,7 @@ HGBool HGLibDeviceImpl::IsPaperOn()
|
||||||
|
|
||||||
HGBool HGLibDeviceImpl::Restart()
|
HGBool HGLibDeviceImpl::Restart()
|
||||||
{
|
{
|
||||||
SANE_Power stat = SANE_Power::SANE_POWER_RESTART;
|
SANE_Power stat = SANE_POWER_RESTART;
|
||||||
unsigned int len = sizeof(SANE_Power);
|
unsigned int len = sizeof(SANE_Power);
|
||||||
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
|
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
|
||||||
if (SANE_STATUS_GOOD == status)
|
if (SANE_STATUS_GOOD == status)
|
||||||
|
@ -956,7 +956,7 @@ HGBool HGLibDeviceImpl::Restart()
|
||||||
|
|
||||||
HGBool HGLibDeviceImpl::ShutDown()
|
HGBool HGLibDeviceImpl::ShutDown()
|
||||||
{
|
{
|
||||||
SANE_Power stat = SANE_Power::SANE_POWER_SHUTDOWN;
|
SANE_Power stat = SANE_POWER_SHUTDOWN;
|
||||||
unsigned int len = sizeof(SANE_Power);
|
unsigned int len = sizeof(SANE_Power);
|
||||||
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
|
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
|
||||||
if (SANE_STATUS_GOOD == status)
|
if (SANE_STATUS_GOOD == status)
|
||||||
|
|
Loading…
Reference in New Issue