Commit 018adccf authored by Rostislav Spinar's avatar Rostislav Spinar

Merge remote-tracking branch 'origin/fix/invalidSpiConf'

parents 56c0525a 88e38bad
Pipeline #3795 passed with stages
in 53 minutes and 48 seconds
......@@ -332,6 +332,9 @@ namespace iqrf {
return state = State::NotReady;
}
break;
case BASE_TYPES_LIB_NOT_INITIALIZED:
state = State::NotReady;
break;
default:
break;
}
......@@ -498,6 +501,7 @@ namespace iqrf {
while (m_runListenThread)
{
int recData = 0;
// lock scope
......@@ -512,6 +516,10 @@ namespace iqrf {
int retval = spi_iqrf_getSPIStatus(&status);
if (retval == BASE_TYPES_LIB_NOT_INITIALIZED) {
THROW_EXC_TRC_WAR(std::logic_error, "SPI not initialized.");
}
if (BASE_TYPES_OPER_OK != retval) {
// report status failure
TRC_WARNING("spi_iqrf_getSPIStatus() failed: " << PAR(retval) << PAR_HEX(status.spiResultStat) << " try to continue listening ...");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment