From debee8aa477fbec7c1c23d5dec565de11241f814 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 28 Jul 2016 14:36:59 +0200 Subject: Use int instead of CommError Signed-off-by: Szczepan Zalega --- include/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/device.h') diff --git a/include/device.h b/include/device.h index c4e2747..1c95c56 100644 --- a/include/device.h +++ b/include/device.h @@ -31,13 +31,13 @@ class Device { /* * Sends packet of HID_REPORT_SIZE. */ - virtual CommError send(const void *packet); + virtual int send(const void *packet); /* * Gets packet of HID_REPORT_SIZE. * Can sleep. See below. */ - virtual CommError recv(void *packet); + virtual int recv(void *packet); int get_retry_count() const { return m_retry_count; }; std::chrono::milliseconds get_retry_timeout() const { return m_retry_timeout; }; -- cgit v1.2.1