changed debug to error

This commit is contained in:
penfold42 2016-08-31 17:51:50 +10:00
parent fa152b4560
commit 44579f85eb

View File

@ -89,7 +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) ); 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)
{ {