Skip to content

Commit 5895a9c

Browse files
authored
Merge pull request #85 from open-ephys-plugins/remove-heartbeat
Remove Heartbeat classes
2 parents ac94e40 + 2a5be5e commit 5895a9c

File tree

7 files changed

+2
-347
lines changed

7 files changed

+2
-347
lines changed

Source/Devices/DeviceList.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "Neuropixels2e.h"
2828
#include "MemoryMonitor.h"
2929
#include "OutputClock.h"
30-
#include "Heartbeat.h"
31-
#include "PersistentHeartbeat.h"
3230
#include "HarpSyncInput.h"
3331
#include "AnalogIO.h"
3432
#include "DigitalIO.h"

Source/Devices/Heartbeat.cpp

Lines changed: 0 additions & 79 deletions
This file was deleted.

Source/Devices/Heartbeat.h

Lines changed: 0 additions & 71 deletions
This file was deleted.

Source/Devices/PersistentHeartbeat.cpp

Lines changed: 0 additions & 98 deletions
This file was deleted.

Source/Devices/PersistentHeartbeat.h

Lines changed: 0 additions & 81 deletions
This file was deleted.

Source/OnixDevice.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ namespace OnixSourcePlugin
5050
PORT_CONTROL,
5151
MEMORYMONITOR,
5252
OUTPUTCLOCK,
53-
HEARTBEAT,
54-
PERSISTENTHEARTBEAT,
5553
HARPSYNCINPUT,
5654
ANALOGIO,
5755
DIGITALIO,

Source/OnixSource.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ bool OnixSource::configureDevice(OnixDeviceVector& sources,
124124
LOGD("Difference in names found for device at address ", deviceIdx, ". Found ", deviceName, " on ", hubName, ", but was expecting ", device->getName(), " on ", device->getHubName());
125125
}
126126
}
127-
else if (device->getDeviceType() == OnixDeviceType::HEARTBEAT ||
128-
device->getDeviceType() == OnixDeviceType::PERSISTENTHEARTBEAT ||
129-
device->getDeviceType() == OnixDeviceType::MEMORYMONITOR)
127+
else if (device->getDeviceType() == OnixDeviceType::MEMORYMONITOR)
130128
{// NB: These are devices with no equivalent settings tab that still need to be created and added to the vector of devices
131129
LOGD("Creating new device ", deviceName, " on ", hubName);
132130
device = std::make_shared<Device>(deviceName, hubName, deviceIdx, ctx);
@@ -296,13 +294,6 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
296294
hubNames.insert({ hubIndex, BREAKOUT_BOARD_NAME });
297295
auto canvas = editor->getCanvas();
298296

299-
devicesFound = configureDevice<PersistentHeartbeat>(sources, canvas, "Heartbeat", BREAKOUT_BOARD_NAME, PersistentHeartbeat::getDeviceType(), hubIndex, context);
300-
if (!devicesFound)
301-
{
302-
sources.clear();
303-
return false;
304-
}
305-
306297
devicesFound = configureDevice<OutputClock>(sources, canvas, "Output Clock", BREAKOUT_BOARD_NAME, OutputClock::getDeviceType(), hubIndex + 5, context);
307298
if (!devicesFound)
308299
{
@@ -601,10 +592,7 @@ std::map<int, OnixDeviceType> OnixSource::createDeviceMap(OnixDeviceVector devic
601592

602593
for (const auto& device : devices)
603594
{
604-
if (filterDevices &&
605-
(device->getDeviceType() == OnixDeviceType::HEARTBEAT ||
606-
device->getDeviceType() == OnixDeviceType::PERSISTENTHEARTBEAT ||
607-
device->getDeviceType() == OnixDeviceType::MEMORYMONITOR)) continue;
595+
if (filterDevices && (device->getDeviceType() == OnixDeviceType::MEMORYMONITOR)) continue;
608596

609597
deviceMap.insert({ device->getDeviceIdx(), device->getDeviceType() });
610598
}

0 commit comments

Comments
 (0)