From bd7b800f0a0851220e033ba5b0c4b8608bfff3e7 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 9 Oct 2018 08:13:58 +0000 Subject: device_io_hid: fix DEFAULT_* type (too short) and init time --- src/device/device_io_hid.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/device/device_io_hid.hpp') 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(); -- cgit v1.2.3