HAL_PX4: print msg when I2C device is closed

This commit is contained in:
Andrew Tridgell 2016-11-07 12:41:49 +11:00
parent df3e434607
commit 922d5a74f7

View File

@ -91,6 +91,8 @@ I2CDevice::I2CDevice(uint8_t bus, uint8_t address) :
I2CDevice::~I2CDevice()
{
printf("I2C device bus %u address 0x%02x closed\n",
(unsigned)_busnum, (unsigned)_address);
}
bool I2CDevice::transfer(const uint8_t *send, uint32_t send_len,