aboutsummaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-09 16:42:15 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-09 16:42:16 +0200
commit18318e0dbcab8a98934786c18b40c8e64d81e19e (patch)
tree92017086a2bd66a154fcae217497672c75691cc8 /src/device
parentMerge pull request #4532 (diff)
parentdevice_io_hid: fix DEFAULT_* type (too short) and init time (diff)
downloadmonero-18318e0dbcab8a98934786c18b40c8e64d81e19e.tar.xz
Merge pull request #4538
bd7b800f device_io_hid: fix DEFAULT_* type (too short) and init time (moneromooo-monero)
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_io_hid.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/device/device_io_hid.hpp b/src/device/device_io_hid.hpp
index 560208c77..6fd15a1d1 100644
--- a/src/device/device_io_hid.hpp
+++ b/src/device/device_io_hid.hpp
@@ -86,13 +86,13 @@ namespace hw {
public:
bool hid_verbose = false;
- const unsigned int OR_SELECT = 1;
- const unsigned int AND_SELECT = 2;
+ static const unsigned int OR_SELECT = 1;
+ static const unsigned int AND_SELECT = 2;
- const unsigned char DEFAULT_CHANNEL = 0x0001;
- const unsigned char DEFAULT_TAG = 0x01;
- const unsigned int DEFAULT_PACKET_SIZE = 64;
- const unsigned int DEFAULT_TIMEOUT = 120000;
+ static const unsigned short DEFAULT_CHANNEL = 0x0001;
+ static const unsigned char DEFAULT_TAG = 0x01;
+ static const unsigned int DEFAULT_PACKET_SIZE = 64;
+ static const unsigned int DEFAULT_TIMEOUT = 120000;
device_io_hid(unsigned short channel, unsigned char tag, unsigned int packet_zize, unsigned int timeout);
device_io_hid();