Fix wrong names for HID++ 1.0 error codes

This commit is contained in:
Peter Wu
2013-08-06 15:45:19 +02:00
parent 63064a01f1
commit 9591ee2254
2 changed files with 26 additions and 26 deletions

View File

@@ -82,19 +82,19 @@ static const char * report_types[0x100] = {
static const char * error_messages[0x100] = { static const char * error_messages[0x100] = {
// error messages for type=8F (ERROR_MSG) // error messages for type=8F (ERROR_MSG)
[0x01] = "SUCCESS", [0x00] = "SUCCESS",
[0x02] = "INVALID_SUBID", [0x01] = "INVALID_SUBID",
[0x03] = "INVALID_ADDRESS", [0x02] = "INVALID_ADDRESS",
[0x04] = "INVALID_VALUE", [0x03] = "INVALID_VALUE",
[0x05] = "CONNECT_FAIL", [0x04] = "CONNECT_FAIL",
[0x06] = "TOO_MANY_DEVICES", [0x05] = "TOO_MANY_DEVICES",
[0x07] = "ALREADY_EXISTS", [0x06] = "ALREADY_EXISTS",
[0x08] = "BUSY", [0x07] = "BUSY",
[0x09] = "UNKNOWN_DEVICE", [0x08] = "UNKNOWN_DEVICE",
[0x0a] = "RESOURCE_ERROR", [0x09] = "RESOURCE_ERROR",
[0x0b] = "REQUEST_UNAVAILABLE", [0x0A] = "REQUEST_UNAVAILABLE",
[0x0c] = "INVALID_PARAM_VALUE", [0x0B] = "INVALID_PARAM_VALUE",
[0x0d] = "WRONG_PIN_CODE", [0x0C] = "WRONG_PIN_CODE",
}; };
// I don't know the upper bound, perhaps 0x10 is enough // I don't know the upper bound, perhaps 0x10 is enough

View File

@@ -225,19 +225,19 @@ struct receiver_info receiver;
// error messages for type=8F (ERROR_MSG) // error messages for type=8F (ERROR_MSG)
static const char * error_messages[0x100] = { static const char * error_messages[0x100] = {
[0x01] = "SUCCESS", [0x00] = "SUCCESS",
[0x02] = "INVALID_SUBID", [0x01] = "INVALID_SUBID",
[0x03] = "INVALID_ADDRESS", [0x02] = "INVALID_ADDRESS",
[0x04] = "INVALID_VALUE", [0x03] = "INVALID_VALUE",
[0x05] = "CONNECT_FAIL", [0x04] = "CONNECT_FAIL",
[0x06] = "TOO_MANY_DEVICES", [0x05] = "TOO_MANY_DEVICES",
[0x07] = "ALREADY_EXISTS", [0x06] = "ALREADY_EXISTS",
[0x08] = "BUSY", [0x07] = "BUSY",
[0x09] = "UNKNOWN_DEVICE", [0x08] = "UNKNOWN_DEVICE",
[0x0a] = "RESOURCE_ERROR", [0x09] = "RESOURCE_ERROR",
[0x0b] = "REQUEST_UNAVAILABLE", [0x0A] = "REQUEST_UNAVAILABLE",
[0x0c] = "INVALID_PARAM_VALUE", [0x0B] = "INVALID_PARAM_VALUE",
[0x0d] = "WRONG_PIN_CODE", [0x0C] = "WRONG_PIN_CODE",
}; };
static const char * device_type[0x10] = { static const char * device_type[0x10] = {