summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-08-06 15:45:19 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-08-06 15:45:19 +0200
commit9591ee225498341a49fa6fc5fc26d77d4e2b3f0d (patch)
treefe378c5b3c4005ef01d5c41eb24a1b5c5954a3a5
parent63064a01f1aae0dbf93ad73741cc5da303535280 (diff)
downloadltunify-9591ee225498341a49fa6fc5fc26d77d4e2b3f0d.tar.gz
Fix wrong names for HID++ 1.0 error codes
-rwxr-xr-xhidraw.c26
-rw-r--r--ltunify.c26
2 files changed, 26 insertions, 26 deletions
diff --git a/hidraw.c b/hidraw.c
index a60b97c..b8ab5e1 100755
--- a/hidraw.c
+++ b/hidraw.c
@@ -82,19 +82,19 @@ static const char * report_types[0x100] = {
static const char * error_messages[0x100] = {
// error messages for type=8F (ERROR_MSG)
- [0x01] = "SUCCESS",
- [0x02] = "INVALID_SUBID",
- [0x03] = "INVALID_ADDRESS",
- [0x04] = "INVALID_VALUE",
- [0x05] = "CONNECT_FAIL",
- [0x06] = "TOO_MANY_DEVICES",
- [0x07] = "ALREADY_EXISTS",
- [0x08] = "BUSY",
- [0x09] = "UNKNOWN_DEVICE",
- [0x0a] = "RESOURCE_ERROR",
- [0x0b] = "REQUEST_UNAVAILABLE",
- [0x0c] = "INVALID_PARAM_VALUE",
- [0x0d] = "WRONG_PIN_CODE",
+ [0x00] = "SUCCESS",
+ [0x01] = "INVALID_SUBID",
+ [0x02] = "INVALID_ADDRESS",
+ [0x03] = "INVALID_VALUE",
+ [0x04] = "CONNECT_FAIL",
+ [0x05] = "TOO_MANY_DEVICES",
+ [0x06] = "ALREADY_EXISTS",
+ [0x07] = "BUSY",
+ [0x08] = "UNKNOWN_DEVICE",
+ [0x09] = "RESOURCE_ERROR",
+ [0x0A] = "REQUEST_UNAVAILABLE",
+ [0x0B] = "INVALID_PARAM_VALUE",
+ [0x0C] = "WRONG_PIN_CODE",
};
// I don't know the upper bound, perhaps 0x10 is enough
diff --git a/ltunify.c b/ltunify.c
index 3da00d7..a04ca98 100644
--- a/ltunify.c
+++ b/ltunify.c
@@ -225,19 +225,19 @@ struct receiver_info receiver;
// error messages for type=8F (ERROR_MSG)
static const char * error_messages[0x100] = {
- [0x01] = "SUCCESS",
- [0x02] = "INVALID_SUBID",
- [0x03] = "INVALID_ADDRESS",
- [0x04] = "INVALID_VALUE",
- [0x05] = "CONNECT_FAIL",
- [0x06] = "TOO_MANY_DEVICES",
- [0x07] = "ALREADY_EXISTS",
- [0x08] = "BUSY",
- [0x09] = "UNKNOWN_DEVICE",
- [0x0a] = "RESOURCE_ERROR",
- [0x0b] = "REQUEST_UNAVAILABLE",
- [0x0c] = "INVALID_PARAM_VALUE",
- [0x0d] = "WRONG_PIN_CODE",
+ [0x00] = "SUCCESS",
+ [0x01] = "INVALID_SUBID",
+ [0x02] = "INVALID_ADDRESS",
+ [0x03] = "INVALID_VALUE",
+ [0x04] = "CONNECT_FAIL",
+ [0x05] = "TOO_MANY_DEVICES",
+ [0x06] = "ALREADY_EXISTS",
+ [0x07] = "BUSY",
+ [0x08] = "UNKNOWN_DEVICE",
+ [0x09] = "RESOURCE_ERROR",
+ [0x0A] = "REQUEST_UNAVAILABLE",
+ [0x0B] = "INVALID_PARAM_VALUE",
+ [0x0C] = "WRONG_PIN_CODE",
};
static const char * device_type[0x10] = {