diff --git a/right/src/slave_drivers/uhk_module_driver.c b/right/src/slave_drivers/uhk_module_driver.c index eb1fada..a506b8e 100644 --- a/right/src/slave_drivers/uhk_module_driver.c +++ b/right/src/slave_drivers/uhk_module_driver.c @@ -28,11 +28,13 @@ static uhk_module_i2c_addresses_t moduleIdsToI2cAddresses[] = { }, }; -static status_t tx(uint8_t i2cAddress) { +static status_t tx(uint8_t i2cAddress) +{ return I2cAsyncWriteMessage(i2cAddress, &txMessage); } -static status_t rx(i2c_message_t *rxMessage, uint8_t i2cAddress) { +static status_t rx(i2c_message_t *rxMessage, uint8_t i2cAddress) +{ return I2cAsyncReadMessage(i2cAddress, rxMessage); }