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));