mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix latchtime logic - it was always ignored (#368)
This commit is contained in:
parent
8d7137136b
commit
8c2185b641
@ -99,7 +99,7 @@ int ProviderSpi::writeBytes(const unsigned size, const uint8_t * data)
|
||||
int retVal = ioctl(_fid, SPI_IOC_MESSAGE(1), &_spi);
|
||||
ErrorIf((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)
|
||||
{
|
||||
// The 'latch' time for latching the shifted-value into the leds
|
||||
timespec latchTime;
|
||||
|
Loading…
Reference in New Issue
Block a user