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

Avoid crash if board not present loading chain with RHD2000 source

parent 5561565e
No related branches found
No related tags found
No related merge requests found
......@@ -850,6 +850,11 @@ void RHD2000Thread::setSampleRate(int sampleRateIndex, bool isTemporary)
void RHD2000Thread::updateRegisters()
{
if (!deviceFound) //Safety to avoid crashes loading a chain with Rythm node withouth a board
{
return;
}
// Set up an RHD2000 register object using this sample rate to
// optimize MUX-related register settings.
chipRegisters.defineSampleRate(boardSampleRate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment