summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-02-09 21:17:53 +0000
committerRichard Hughes <richard@hughsie.com>2015-02-16 19:33:50 +0000
commitd8bc0e74f608753f84c89ff0d8d5e6babc1a1b62 (patch)
tree4546ae8b4269056272b7e8d04deb2b3b7161aeaf
parentef72e9006e06c0bd315435a64b1157d5d71e8ae6 (diff)
downloadcolord-d8bc0e74f608753f84c89ff0d8d5e6babc1a1b62.tar.gz
colorhug: Add CH_ERROR_SELF_TEST_EEPROM error code
-rw-r--r--lib/colorhug/ch-common.c3
-rw-r--r--lib/colorhug/ch-common.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/colorhug/ch-common.c b/lib/colorhug/ch-common.c
index bfa68da..c1e26ac 100644
--- a/lib/colorhug/ch-common.c
+++ b/lib/colorhug/ch-common.c
@@ -141,6 +141,9 @@ ch_strerror (ChError error_enum)
case CH_ERROR_I2C_SLAVE_CONFIG:
str = "I2C set slave config failed";
break;
+ case CH_ERROR_SELF_TEST_EEPROM:
+ str = "Self test failed: EEPROM";
+ break;
default:
str = "Unknown error, please report";
break;
diff --git a/lib/colorhug/ch-common.h b/lib/colorhug/ch-common.h
index 4dcd318..77b34a5 100644
--- a/lib/colorhug/ch-common.h
+++ b/lib/colorhug/ch-common.h
@@ -1346,6 +1346,7 @@ typedef enum {
CH_ERROR_SELF_TEST_ADC_VREF,
CH_ERROR_I2C_SLAVE_ADDRESS,
CH_ERROR_I2C_SLAVE_CONFIG,
+ CH_ERROR_SELF_TEST_EEPROM, /* since 1.2.9 */
/*< private >*/
CH_ERROR_LAST
} ChError;