mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
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:
parent
0603fadd21
commit
fa152b4560
@ -89,6 +89,7 @@ int ProviderSpi::writeBytes(const unsigned size, const uint8_t * data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int retVal = ioctl(_fid, SPI_IOC_MESSAGE(1), &_spi);
|
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)
|
if (retVal == 0 && _latchTime_ns > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user