From 034108eb37ab07fc930cb43e7b832ee56ebd2cea Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Thu, 29 Dec 2022 21:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=BB=9A=E8=BD=B4=E5=BC=A0?= =?UTF-8?q?=E6=95=B0=E5=92=8C=E6=89=AB=E6=8F=8F=E5=BC=A0=E6=95=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/fwupgrade/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/fwupgrade/mainwindow.cpp b/app/fwupgrade/mainwindow.cpp index e2b92ec4..3166d137 100644 --- a/app/fwupgrade/mainwindow.cpp +++ b/app/fwupgrade/mainwindow.cpp @@ -283,7 +283,7 @@ void MainWindow::on_comboDevList_currentIndexChanged(int index) SANE_Int rollCount = 0; unsigned int rollCountSize = sizeof(SANE_Int); - SANE_Status ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_HISTORY_ROLLER_NUM, &rollCount, &rollCountSize); + SANE_Status ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_ROLLER_NUM, &rollCount, &rollCountSize); if(ret == SANE_STATUS_GOOD && rollCount >= 0) { ui->labelRollCount->setText(QString("%1").arg(rollCount)); @@ -295,7 +295,7 @@ void MainWindow::on_comboDevList_currentIndexChanged(int index) SANE_Int scanCount = 0; unsigned int scanCountSize = sizeof(SANE_Int); - ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_SCANN_NUM, &scanCount, &scanCountSize); + ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_HISTORY_SCAN_NUM, &scanCount, &scanCountSize); if (ret == SANE_STATUS_GOOD && scanCount >= 0) { ui->labelScanCount->setText(QString("%1").arg(scanCount));