diff --git a/Source/Processors/DataThreads/RHD2000Thread.cpp b/Source/Processors/DataThreads/RHD2000Thread.cpp index b9180ab3e5b134281b2ce7187a4f817b31e05df5..ed9ef71d45bf046036681d1d937b0ec5127687ce 100644 --- a/Source/Processors/DataThreads/RHD2000Thread.cpp +++ b/Source/Processors/DataThreads/RHD2000Thread.cpp @@ -293,6 +293,10 @@ void RHD2000Thread::initializeBoard() void RHD2000Thread::scanPorts() { + if (!deviceFound) //Safety to avoid crashes if board not present + { + return; + } // Scan SPI ports int delay, stream, id;