From f29ab1d59969463a7084446a404585a0a09b364d Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Sun, 8 Oct 2023 15:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BE=E5=83=8F=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9B=B8=E5=85=B3=E5=A4=B4=E6=96=87=E4=BB=B6=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_ipc.cpp | 2 +- hgdriver/hgdev/hg_scanner_200.h | 4 ++-- hgdriver/hgdev/hg_scanner_302.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hgdriver/hgdev/hg_ipc.cpp b/hgdriver/hgdev/hg_ipc.cpp index fac9eba..d65e04b 100644 --- a/hgdriver/hgdev/hg_ipc.cpp +++ b/hgdriver/hgdev/hg_ipc.cpp @@ -639,7 +639,7 @@ tiny_buffer::tiny_buffer(unsigned int size , const char* name_leading , const char* ext , unsigned int uniq_id) - : size_(size), buf_(nullptr), img_statu_(SANE_Image_Statu_OK) + : size_(size), buf_(nullptr), img_statu_(IMG_STATUS_OK) { init(tmp_path, name_leading, ext, uniq_id); } diff --git a/hgdriver/hgdev/hg_scanner_200.h b/hgdriver/hgdev/hg_scanner_200.h index b115ea4..7359d5f 100644 --- a/hgdriver/hgdev/hg_scanner_200.h +++ b/hgdriver/hgdev/hg_scanner_200.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once // hg_scanner is the base class of kinds of scanners // @@ -58,7 +58,7 @@ private: int readusb(USBCB &usb); int pop_image(); int get_scanner_status(USBCB &usb); - int get_img_data(unsigned int bytes, SANE_Image_Statu statu = SANE_Image_Statu_OK); + int get_img_data(unsigned int bytes, SANE_Image_Statu statu = IMG_STATUS_OK); int writedown_device_configuration(bool type =false,setting_hardware::HGSCANCONF_DSP *d = NULL); void writedown_image_configuration(void); void printf_devconfig(setting_hardware::HGSCANCONF_DSP *d = NULL); diff --git a/hgdriver/hgdev/hg_scanner_302.h b/hgdriver/hgdev/hg_scanner_302.h index 20879a3..53c0514 100644 --- a/hgdriver/hgdev/hg_scanner_302.h +++ b/hgdriver/hgdev/hg_scanner_302.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once // hg_scanner is the base class of kinds of scanners // @@ -51,7 +51,7 @@ class hg_scanner_302 : public hg_scanner int writedown_image_configuration(void); int pop_first_image(void); - int read_one_image_from_usb(SANE_Image_Statu statu = SANE_Image_Statu_OK); + int read_one_image_from_usb(SANE_Image_Statu statu = IMG_STATUS_OK); virtual int discard_all_images(); virtual int get_roller_life(void) override;