summaryrefslogtreecommitdiff
path: root/board/bobba
diff options
context:
space:
mode:
authorDavid Huang <david.huang@quanta.corp-partner.google.com>2020-06-05 12:12:22 +0800
committerMarco Chen <marcochen@chromium.org>2020-06-05 06:42:54 +0000
commit6d7a73847e676d04a38a4d2528c00648381a871a (patch)
tree902c8d628fb29fd1e9cf29e224b87454414fd48b /board/bobba
parent29af11e2e3da844390f893a4776fecb5a21fd0fe (diff)
downloadchrome-ec-6d7a73847e676d04a38a4d2528c00648381a871a.tar.gz
Bobba: Fix printing when cbi_get_board_version() failed
Fix the printing when cbi_get_board_version failed. BUG=b:154772847, b:156711950 BRANCH=octopus TEST=Check usb dongle/typec adapter worked properly in any power state. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I6df4026476cd60cf1b7bb435f95800c70e9692cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2230950 Reviewed-by: Marco Chen <marcochen@chromium.org> Commit-Queue: Marco Chen <marcochen@chromium.org> Tested-by: Marco Chen <marcochen@chromium.org>
Diffstat (limited to 'board/bobba')
-rw-r--r--board/bobba/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/bobba/board.c b/board/bobba/board.c
index 3044dbb25a..81840eb7ca 100644
--- a/board/bobba/board.c
+++ b/board/bobba/board.c
@@ -75,7 +75,7 @@ static void ppc_interrupt(enum gpio_signal signal)
{
uint32_t board_version = 0;
- if (cbi_get_board_version(&board_version) == EC_SUCCESS)
+ if (cbi_get_board_version(&board_version) != EC_SUCCESS)
CPRINTSUSB("Get board version failed.");
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL: