Skip to content
Snippets Groups Projects
Commit ba4f37f1 authored by shayo's avatar shayo
Browse files

Fixed minor bug in Pulse Pal

if no serial devices exist, adding Pulse pal caused a crash.
parent 09317b0e
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,11 @@ void PulsePal::initialize()
vector<ofSerialDeviceInfo> devices = serial.getDeviceList();
// bool foundDevice = false;
if (devices.size() == 0)
{
std::cout << "No serial devices found!" << std::endl;
return;
}
int id = devices[0].getDeviceID();
string path = devices[0].getDevicePath();
......
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