diff --git a/flight/PiOS/Common/pios_bmp085.c b/flight/PiOS/Common/pios_bmp085.c index aecf8ab37..2b829ba9d 100644 --- a/flight/PiOS/Common/pios_bmp085.c +++ b/flight/PiOS/Common/pios_bmp085.c @@ -204,12 +204,14 @@ bool PIOS_BMP085_Read(uint8_t address, uint8_t *buffer, uint8_t len) const struct pios_i2c_txn txn_list[] = { { + .info = __func__, .addr = BMP085_I2C_ADDR, .rw = PIOS_I2C_TXN_WRITE, .len = sizeof(addr_buffer), .buf = addr_buffer, }, { + .info = __func__, .addr = BMP085_I2C_ADDR, .rw = PIOS_I2C_TXN_READ, .len = len, @@ -238,6 +240,7 @@ bool PIOS_BMP085_Write(uint8_t address, uint8_t buffer) const struct pios_i2c_txn txn_list[] = { { + .info = __func__, .addr = BMP085_I2C_ADDR, .rw = PIOS_I2C_TXN_WRITE, .len = sizeof(data), diff --git a/flight/PiOS/Common/pios_hmc5843.c b/flight/PiOS/Common/pios_hmc5843.c index a66adf8eb..3ce0d06b8 100644 --- a/flight/PiOS/Common/pios_hmc5843.c +++ b/flight/PiOS/Common/pios_hmc5843.c @@ -214,12 +214,14 @@ bool PIOS_HMC5843_Read(uint8_t address, uint8_t *buffer, uint8_t len) const struct pios_i2c_txn txn_list[] = { { + .info = __func__, .addr = PIOS_HMC5843_I2C_ADDR, .rw = PIOS_I2C_TXN_WRITE, .len = sizeof(addr_buffer), .buf = addr_buffer, }, { + .info = __func__, .addr = PIOS_HMC5843_I2C_ADDR, .rw = PIOS_I2C_TXN_READ, .len = len, @@ -247,6 +249,7 @@ bool PIOS_HMC5843_Write(uint8_t address, uint8_t buffer) const struct pios_i2c_txn txn_list[] = { { + .info = __func__, .addr = PIOS_HMC5843_I2C_ADDR, .rw = PIOS_I2C_TXN_WRITE, .len = sizeof(data), diff --git a/flight/PiOS/inc/pios_i2c.h b/flight/PiOS/inc/pios_i2c.h index 51b3cdecc..f2109ef49 100644 --- a/flight/PiOS/inc/pios_i2c.h +++ b/flight/PiOS/inc/pios_i2c.h @@ -40,6 +40,7 @@ enum pios_i2c_txn_direction { }; struct pios_i2c_txn { + const char * info; uint16_t addr; enum pios_i2c_txn_direction rw; uint32_t len;