diff options
author | David Chiu <dchiu@synaptics.com> | 2022-03-02 15:47:31 +0800 |
---|---|---|
committer | Vincent Huang <vincenthsw@gmail.com> | 2022-03-14 15:23:15 +0800 |
commit | 7f553ab32a9f7096c8d041bc8cf79533a4cb3ff2 (patch) | |
tree | 49f1e5cf1a73f6dd3770bb9d3ea49d40d85f87da /rmidevice/rmidevice.h | |
parent | e9115fa74a72e9a267ec6c08b8df8cd05d4f9085 (diff) | |
download | rmi4utils-7f553ab32a9f7096c8d041bc8cf79533a4cb3ff2.tar.gz |
Support debugging message in read/write
Diffstat (limited to 'rmidevice/rmidevice.h')
-rw-r--r-- | rmidevice/rmidevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rmidevice/rmidevice.h b/rmidevice/rmidevice.h index e40c653..9b8c915 100644 --- a/rmidevice/rmidevice.h +++ b/rmidevice/rmidevice.h @@ -38,7 +38,7 @@ class RMIDevice public: RMIDevice() : m_functionList(), m_sensorID(0), m_bCancel(false), m_bytesPerReadRequest(0), m_page(-1), m_deviceType(RMI_DEVICE_TYPE_ANY) - {} + { m_hasDebug = false; } virtual ~RMIDevice() {} virtual int Open(const char * filename) = 0; virtual int Read(unsigned short addr, unsigned char *data, @@ -83,6 +83,8 @@ public: virtual bool FindDevice(enum RMIDeviceType type = RMI_DEVICE_TYPE_ANY) = 0; enum RMIDeviceType GetDeviceType() { return m_deviceType; } + bool m_hasDebug; + protected: std::vector<RMIFunction> m_functionList; unsigned char m_manufacturerID; |