Skip to content

Commit a7c336e

Browse files
authored
Replicate the GCC error fix from the hx30 to hx20
Applies the Fix from FrameworkComputer#24 into the hx20 board.
1 parent 38c1b38 commit a7c336e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

board/hx20/cypress5525.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,12 +968,13 @@ void cyp5525_port_int(int controller, int port)
968968
int port_idx = (controller << 1) + port;
969969
enum pd_msg_type sop_type;
970970
rv = i2c_read_offset16_block(i2c_port, addr_flags, CYP5525_PORT_PD_RESPONSE_REG(port), data2, 4);
971-
if (rv != EC_SUCCESS)
971+
if (rv != EC_SUCCESS) {
972972
CPRINTS("PORT_PD_RESPONSE_REG failed");
973-
print_pd_response_code(controller,
973+
print_pd_response_code(controller,
974974
port,
975975
data2[0],
976976
data2[1]);
977+
}
977978

978979
response_len = data2[1];
979980
switch (data2[0]) {

0 commit comments

Comments
 (0)