mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
HAL_PX4: print msg when I2C device is closed
This commit is contained in:
parent
df3e434607
commit
922d5a74f7
@ -91,6 +91,8 @@ I2CDevice::I2CDevice(uint8_t bus, uint8_t address) :
|
|||||||
|
|
||||||
I2CDevice::~I2CDevice()
|
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,
|
bool I2CDevice::transfer(const uint8_t *send, uint32_t send_len,
|
||||||
|
Loading…
Reference in New Issue
Block a user