summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/rambi/battery.c2
-rw-r--r--board/squawks/battery.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/rambi/battery.c b/board/rambi/battery.c
index 622d903d22..3c031d6480 100644
--- a/board/rambi/battery.c
+++ b/board/rambi/battery.c
@@ -48,7 +48,7 @@ static int cutoff(void)
static int battery_command_cut_off(struct host_cmd_handler_args *args)
{
- return cutoff() ? EC_RES_SUCCESS : EC_RES_ERROR;
+ return cutoff() ? EC_RES_ERROR : EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_BATTERY_CUT_OFF, battery_command_cut_off,
EC_VER_MASK(0));
diff --git a/board/squawks/battery.c b/board/squawks/battery.c
index 156818d7fd..7c8d140d5b 100644
--- a/board/squawks/battery.c
+++ b/board/squawks/battery.c
@@ -53,7 +53,7 @@ static int cutoff(void)
static int battery_command_cut_off(struct host_cmd_handler_args *args)
{
- return cutoff() ? EC_RES_SUCCESS : EC_RES_ERROR;
+ return cutoff() ? EC_RES_ERROR : EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_BATTERY_CUT_OFF, battery_command_cut_off,
EC_VER_MASK(0));