Skip to content
Snippets Groups Projects
Commit f94d626f authored by aacuevas's avatar aacuevas
Browse files

Avoid crash if board not present but rescan ports button pressed

parent 9f80e8f4
No related branches found
No related tags found
No related merge requests found
...@@ -293,6 +293,10 @@ void RHD2000Thread::initializeBoard() ...@@ -293,6 +293,10 @@ void RHD2000Thread::initializeBoard()
void RHD2000Thread::scanPorts() void RHD2000Thread::scanPorts()
{ {
if (!deviceFound) //Safety to avoid crashes if board not present
{
return;
}
// Scan SPI ports // Scan SPI ports
int delay, stream, id; int delay, stream, id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment