Verified Commit bd8521e1 authored by Roman Ondráček's avatar Roman Ondráček
parents b479a2c6 018adccf
Pipeline #3798 passed with stages
in 85 minutes and 35 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