better error printout for i2c write error

This commit is contained in:
Robin Müller 2023-03-10 14:23:40 +01:00
parent 23d9b44b3e
commit 87462afe6d
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -112,7 +112,7 @@ ReturnValue_t I2cComIF::sendMessage(CookieIF* cookie, const uint8_t* sendData, s
if (i2cCookie->errorCounter < 3) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "I2cComIF::sendMessage: Failed to send data to I2C "
"device with error code "
"device from " << deviceFile << " with error code "
<< errno << ". Error description: " << strerror(errno) << std::endl;
#endif
}