Remove unecessary bool

This commit is contained in:
Andreas Urke 2016-08-09 00:41:19 +02:00
parent e1359519ab
commit 8128986ccd

View file

@ -174,8 +174,6 @@ board_i2c_write(uint8_t *data, uint8_t len)
bool
board_i2c_write_single(uint8_t data)
{
bool success;
/* Write slave address */
ti_lib_i2c_master_slave_addr_set(I2C0_BASE, slave_addr, false);
@ -188,9 +186,8 @@ board_i2c_write_single(uint8_t data)
/* Assert RUN + START + STOP */
ti_lib_i2c_master_control(I2C0_BASE, I2C_MASTER_CMD_SINGLE_SEND);
while(ti_lib_i2c_master_busy(I2C0_BASE));
success = i2c_status();
return success;
return i2c_status();
}
/*---------------------------------------------------------------------------*/
bool