Added debug logging to ProviderSpi.cpp on writes.

If you have more leds configured than the SPI buffer can support you now get this:
[HYPERIOND LedDevice] <DEBUG> <ProviderSpi.cpp:92:writeBytes()> SPI failed to write. errno: 90, Message too long
This commit is contained in:
penfold42 2016-08-31 17:34:52 +10:00
parent 0603fadd21
commit fa152b4560

View File

@ -89,6 +89,7 @@ int ProviderSpi::writeBytes(const unsigned size, const uint8_t * data)
}
int retVal = ioctl(_fid, SPI_IOC_MESSAGE(1), &_spi);
DebugIf((retVal < 0), _log, "SPI failed to write. errno: %d, %s", errno, strerror(errno) );
if (retVal == 0 && _latchTime_ns > 0)
{