Skip to content

Commit 66359b6

Browse files
committed
Allow Rhythm FPGA module to save sample rate as string
1 parent 8197c29 commit 66359b6

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Source/Plugins/RhythmNode/RHD2000Editor.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ void RHD2000Editor::stopAcquisition()
904904
void RHD2000Editor::saveCustomParameters(XmlElement* xml)
905905
{
906906
xml->setAttribute("SampleRate", sampleRateInterface->getSelectedId());
907+
xml->setAttribute("SampleRateString", sampleRateInterface->getText());
907908
xml->setAttribute("LowCut", bandwidthInterface->getLowerBandwidth());
908909
xml->setAttribute("HighCut", bandwidthInterface->getUpperBandwidth());
909910
xml->setAttribute("ADCsOn", adcButton->getToggleState());
@@ -1181,6 +1182,11 @@ void SampleRateInterface::setSelectedId(int id)
11811182
rateSelection->setSelectedId(id);
11821183
}
11831184

1185+
String SampleRateInterface::getText()
1186+
{
1187+
return rateSelection->getText();
1188+
}
1189+
11841190

11851191
void SampleRateInterface::paint(Graphics& g)
11861192
{

Source/Plugins/RhythmNode/RHD2000Editor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ class SampleRateInterface : public Component,
320320
int getSelectedId();
321321
void setSelectedId(int);
322322

323+
String getText();
324+
323325
void paint(Graphics& g);
324326
void comboBoxChanged(ComboBox* cb);
325327

0 commit comments

Comments
 (0)