Skip to content

Commit 7b95479

Browse files
committed
Fix Open Ephys format max input check
1 parent 05a5ed4 commit 7b95479

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Source/Processors/RecordNode/RecordNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void RecordNode::updateSettings()
391391
++it;
392392
}
393393

394-
#ifdef WIN32
394+
#ifdef _WIN32
395395
// check Open Ephys format on windows
396396
if (recordEngine->getEngineId().equalsIgnoreCase("OPENEPHYS") && getNumInputs() > 300)
397397
{

Source/Processors/RecordNode/RecordNodeEditor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void RecordNodeEditor::comboBoxChanged(ComboBox* box)
158158

159159
std::vector<RecordEngineManager*> engines = CoreServices::getAvailableRecordEngines();
160160

161-
#ifdef WIN32
161+
#ifdef _WIN32
162162
if (engines[selectedEngineIndex]->getID().equalsIgnoreCase("OPENEPHYS") &&
163163
recordNode->getNumInputs() > 300)
164164
{
@@ -174,8 +174,9 @@ void RecordNodeEditor::comboBoxChanged(ComboBox* box)
174174
"WARNING", "Open Ephys format does not support this many simultaneously recorded channels. Resetting to Binary format.");
175175
box->setSelectedItemIndex(0);
176176
recordNode->setEngine("BINARY");
177+
178+
return;
177179
}
178-
return;
179180
}
180181
#endif
181182

0 commit comments

Comments
 (0)