解决HGScannerlib在mips上的编译问题

This commit is contained in:
luoliangyi 2022-10-14 15:27:49 +08:00
parent cda40fccd2
commit cbbe1bb98e
1 changed files with 2 additions and 2 deletions

View File

@ -946,7 +946,7 @@ HGBool HGLibDeviceImpl::IsPaperOn()
HGBool HGLibDeviceImpl::Restart()
{
SANE_Power stat = SANE_Power::SANE_POWER_RESTART;
SANE_Power stat = SANE_POWER_RESTART;
unsigned int len = sizeof(SANE_Power);
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
if (SANE_STATUS_GOOD == status)
@ -956,7 +956,7 @@ HGBool HGLibDeviceImpl::Restart()
HGBool HGLibDeviceImpl::ShutDown()
{
SANE_Power stat = SANE_Power::SANE_POWER_SHUTDOWN;
SANE_Power stat = SANE_POWER_SHUTDOWN;
unsigned int len = sizeof(SANE_Power);
SANE_Status status = sane_io_control(m_devHandle, IO_CTRL_CODE_SET_POWER_LEVEL, &stat, &len);
if (SANE_STATUS_GOOD == status)