mock SPI: correct error message to actually use data provided
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
a704a956ea
commit
9ff47aa64a
@@ -99,7 +99,7 @@ mraa_mock_spi_mode_replace(mraa_spi_context dev, mraa_spi_mode_t mode)
|
|||||||
spi_mode = SPI_MODE_3;
|
spi_mode = SPI_MODE_3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
syslog(LOG_ERR, "spi: mode: Invalid SPI mode selected", mode);
|
syslog(LOG_ERR, "spi: mode: Invalid SPI mode %d selected", mode);
|
||||||
return MRAA_ERROR_INVALID_PARAMETER;
|
return MRAA_ERROR_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user