From e78bdcd3f0290f0baf29b0d06d24a55cf4a88a15 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 10 Jun 2015 18:46:52 +0800 Subject: ectool: Add led battery color for gandof Add led battery color orange for gandof. BRANCH=gandof BUG=chrome-os-partner:40035 TEST=Use "ectool led battery orange" "ectool led power white" to check Change-Id: I6b0442827086b3deeb1ed8fd1d3b143d2e6f651a Reviewed-on: https://chromium-review.googlesource.com/276831 Reviewed-by: Mohammed Habibulla Commit-Queue: Ryan Siao Tested-by: Ryan Siao --- include/ec_commands.h | 1 + util/ectool.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ec_commands.h b/include/ec_commands.h index 2266f07971..950a29f0ed 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1174,6 +1174,7 @@ enum ec_led_colors { EC_LED_COLOR_BLUE, EC_LED_COLOR_YELLOW, EC_LED_COLOR_WHITE, + EC_LED_COLOR_ORANGE, EC_LED_COLOR_COUNT }; diff --git a/util/ectool.c b/util/ectool.c index 062ffafedb..9f85898cb9 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -204,7 +204,7 @@ static const char * const image_names[] = {"unknown", "RO", "RW"}; /* Note: depends on enum ec_led_colors */ static const char * const led_color_names[EC_LED_COLOR_COUNT] = { - "red", "green", "blue", "yellow", "white"}; + "red", "green", "blue", "yellow", "white", "orange"}; /* Note: depends on enum ec_led_id */ static const char * const led_names[EC_LED_ID_COUNT] = { -- cgit v1.2.1