firmware: Don't trigger stop twice in i2c_a_read

This commit is contained in:
Ondrej Jirman 2021-08-05 00:50:43 +02:00
parent b3412ee2a4
commit 7f1655be83

View file

@ -1065,7 +1065,7 @@ static uint8_t i2c_a_read(void)
// read received data // read received data
REG_SYS(I2CA_DATA) = P0_I2CBDB; REG_SYS(I2CA_DATA) = P0_I2CBDB;
status = 0; return 0;;
err: err:
i2c_a_stop(); i2c_a_stop();
return status; return status;