Skip to content

Commit e8c0e9b

Browse files
committed
Fix crash loading chain with Ryhthm processor with no board present
1 parent b0b851a commit e8c0e9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/Processors/DataThreads/RhythmNode/RHD2000Thread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,8 @@ void RHD2000Thread::enableBoardLeds(bool enable)
17261726

17271727
int RHD2000Thread::setClockDivider(int divide_ratio)
17281728
{
1729+
if (!deviceFound)
1730+
return 1;
17291731

17301732
// Divide ratio should be 1 or an even number
17311733
if (divide_ratio != 1 && divide_ratio % 2)

0 commit comments

Comments
 (0)