mirror of https://github.com/ARMmbed/mbed-os.git
i2c_api.c: fix style
parent
e18a800e7c
commit
32311b7ca5
|
@ -297,8 +297,7 @@ void i2c_configure_twi_instance(i2c_t *obj)
|
|||
|
||||
nrfx_prs_release(nordic_nrf5_twi_register[instance]);
|
||||
if (nrfx_prs_acquire(nordic_nrf5_twi_register[instance],
|
||||
irq_handlers[instance]) != NRFX_SUCCESS)
|
||||
{
|
||||
irq_handlers[instance]) != NRFX_SUCCESS) {
|
||||
DEBUG_PRINTF("Function: %s, nrfx_prs_acquire error code: %s.",
|
||||
__func__,
|
||||
err_code);
|
||||
|
@ -792,8 +791,7 @@ static void nordic_nrf5_twi_event_handler(nrfx_twi_evt_t const *p_event, void *p
|
|||
struct i2c_s *config = &obj->i2c;
|
||||
|
||||
/* Translate event type from NRF driver values to mbed HAL values. */
|
||||
switch (p_event->type)
|
||||
{
|
||||
switch (p_event->type) {
|
||||
/* Transfer completed event. */
|
||||
case NRFX_TWI_EVT_DONE:
|
||||
config->event = I2C_EVENT_TRANSFER_COMPLETE;
|
||||
|
|
Loading…
Reference in New Issue